diff mbox

[02/11] drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata

Message ID 9a1859d08801fcd813f75b1a79dfcd68ba51b58f.1289851770.git.joe@perches.com
State Accepted
Delegated to: David Miller
Headers show

Commit Message

Joe Perches Nov. 15, 2010, 8:13 p.m. UTC
Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/ide/pmac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

David Miller Nov. 22, 2010, 7:38 p.m. UTC | #1
From: Joe Perches <joe@perches.com>
Date: Mon, 15 Nov 2010 12:13:53 -0800

> Signed-off-by: Joe Perches <joe@perches.com>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index ebcf8e4..1db7c43 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -1334,7 +1334,7 @@  out_free_pmif:
 static int
 pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
 {
-	pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
+	pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
 	int rc = 0;
 
 	if (mesg.event != pdev->dev.power.power_state.event
@@ -1350,7 +1350,7 @@  pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
 static int
 pmac_ide_pci_resume(struct pci_dev *pdev)
 {
-	pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
+	pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
 	int rc = 0;
 
 	if (pdev->dev.power.power_state.event != PM_EVENT_ON) {