Commit 345594d6 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

drivers/staging: Remove unnecessary casts of pci_get_drvdata

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 859171ca
...@@ -516,7 +516,7 @@ static void __devexit chd_dec_pci_remove(struct pci_dev *pdev) ...@@ -516,7 +516,7 @@ static void __devexit chd_dec_pci_remove(struct pci_dev *pdev)
BCMLOG_ENTER; BCMLOG_ENTER;
pinfo = (struct crystalhd_adp *) pci_get_drvdata(pdev); pinfo = pci_get_drvdata(pdev);
if (!pinfo) { if (!pinfo) {
BCMLOG_ERR("could not get adp\n"); BCMLOG_ERR("could not get adp\n");
return; return;
...@@ -626,7 +626,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state) ...@@ -626,7 +626,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state)
struct crystalhd_ioctl_data *temp; struct crystalhd_ioctl_data *temp;
enum BC_STATUS sts = BC_STS_SUCCESS; enum BC_STATUS sts = BC_STS_SUCCESS;
adp = (struct crystalhd_adp *)pci_get_drvdata(pdev); adp = pci_get_drvdata(pdev);
if (!adp) { if (!adp) {
BCMLOG_ERR("could not get adp\n"); BCMLOG_ERR("could not get adp\n");
return -ENODEV; return -ENODEV;
...@@ -660,7 +660,7 @@ int chd_dec_pci_resume(struct pci_dev *pdev) ...@@ -660,7 +660,7 @@ int chd_dec_pci_resume(struct pci_dev *pdev)
enum BC_STATUS sts = BC_STS_SUCCESS; enum BC_STATUS sts = BC_STS_SUCCESS;
int rc; int rc;
adp = (struct crystalhd_adp *)pci_get_drvdata(pdev); adp = pci_get_drvdata(pdev);
if (!adp) { if (!adp) {
BCMLOG_ERR("could not get adp\n"); BCMLOG_ERR("could not get adp\n");
return -ENODEV; return -ENODEV;
......
...@@ -783,7 +783,7 @@ static void __devexit et131x_pci_remove(struct pci_dev *pdev) ...@@ -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 /* Retrieve the net_device pointer from the pci_dev struct, as well
* as the private adapter struct * as the private adapter struct
*/ */
netdev = (struct net_device *) pci_get_drvdata(pdev); netdev = pci_get_drvdata(pdev);
adapter = netdev_priv(netdev); adapter = netdev_priv(netdev);
/* Perform device cleanup */ /* Perform device cleanup */
......
...@@ -458,7 +458,7 @@ void __devexit wl_pci_remove(struct pci_dev *pdev) ...@@ -458,7 +458,7 @@ void __devexit wl_pci_remove(struct pci_dev *pdev)
return; return;
} }
dev = (struct net_device *)pci_get_drvdata( pdev ); dev = pci_get_drvdata( pdev );
if( dev == NULL ) { if( dev == NULL ) {
DBG_ERROR( DbgInfo, "Could not retrieve net_device structure\n" ); DBG_ERROR( DbgInfo, "Could not retrieve net_device structure\n" );
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment