drivers/staging: Remove unnecessary casts of pci_get_drvdata
authorJoe Perches <joe@perches.com>
Mon, 15 Nov 2010 20:14:00 +0000 (12:14 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:06:47 +0000 (12:06 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/crystalhd/crystalhd_lnx.c
drivers/staging/et131x/et131x_initpci.c
drivers/staging/wlags49_h2/wl_pci.c

index 28c6b8ced424cec2e2f3d54ac495f61fda6941da..719e70bc871e733ad602be176705feb13d0972e8 100644 (file)
@@ -516,7 +516,7 @@ static void __devexit chd_dec_pci_remove(struct pci_dev *pdev)
 
        BCMLOG_ENTER;
 
-       pinfo = (struct crystalhd_adp *) pci_get_drvdata(pdev);
+       pinfo = pci_get_drvdata(pdev);
        if (!pinfo) {
                BCMLOG_ERR("could not get adp\n");
                return;
@@ -626,7 +626,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state)
        struct crystalhd_ioctl_data *temp;
        enum BC_STATUS sts = BC_STS_SUCCESS;
 
-       adp = (struct crystalhd_adp *)pci_get_drvdata(pdev);
+       adp = pci_get_drvdata(pdev);
        if (!adp) {
                BCMLOG_ERR("could not get adp\n");
                return -ENODEV;
@@ -660,7 +660,7 @@ int chd_dec_pci_resume(struct pci_dev *pdev)
        enum BC_STATUS sts = BC_STS_SUCCESS;
        int rc;
 
-       adp = (struct crystalhd_adp *)pci_get_drvdata(pdev);
+       adp = pci_get_drvdata(pdev);
        if (!adp) {
                BCMLOG_ERR("could not get adp\n");
                return -ENODEV;
index 10bcb45d73a38e8d70a5b72da76b80746ae76922..f62ba7a68f344c69284eff577cb9ebd4567ff365 100644 (file)
@@ -783,7 +783,7 @@ static void __devexit et131x_pci_remove(struct pci_dev *pdev)
        /* Retrieve the net_device pointer from the pci_dev struct, as well
         * as the private adapter struct
         */
-       netdev = (struct net_device *) pci_get_drvdata(pdev);
+       netdev = pci_get_drvdata(pdev);
        adapter = netdev_priv(netdev);
 
        /* Perform device cleanup */
index 020b17adee2d27bcc20fddb21df10d00451570cf..28ae9dd1b44ef0c0c1cfc9c052b57cfdc66d2d24 100644 (file)
@@ -458,7 +458,7 @@ void __devexit wl_pci_remove(struct pci_dev *pdev)
         return;
     }
 
-    dev = (struct net_device *)pci_get_drvdata( pdev );
+    dev = pci_get_drvdata( pdev );
     if( dev == NULL ) {
         DBG_ERROR( DbgInfo, "Could not retrieve net_device structure\n" );
         return;