Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/staging: Remove unnecessary casts of pci_get_drvdata

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Joe Perches and committed by
Greg Kroah-Hartman
345594d6 859171ca

+5 -5
+3 -3
drivers/staging/crystalhd/crystalhd_lnx.c
··· 516 516 517 517 BCMLOG_ENTER; 518 518 519 - pinfo = (struct crystalhd_adp *) pci_get_drvdata(pdev); 519 + pinfo = pci_get_drvdata(pdev); 520 520 if (!pinfo) { 521 521 BCMLOG_ERR("could not get adp\n"); 522 522 return; ··· 626 626 struct crystalhd_ioctl_data *temp; 627 627 enum BC_STATUS sts = BC_STS_SUCCESS; 628 628 629 - adp = (struct crystalhd_adp *)pci_get_drvdata(pdev); 629 + adp = pci_get_drvdata(pdev); 630 630 if (!adp) { 631 631 BCMLOG_ERR("could not get adp\n"); 632 632 return -ENODEV; ··· 660 660 enum BC_STATUS sts = BC_STS_SUCCESS; 661 661 int rc; 662 662 663 - adp = (struct crystalhd_adp *)pci_get_drvdata(pdev); 663 + adp = pci_get_drvdata(pdev); 664 664 if (!adp) { 665 665 BCMLOG_ERR("could not get adp\n"); 666 666 return -ENODEV;
+1 -1
drivers/staging/et131x/et131x_initpci.c
··· 783 783 /* Retrieve the net_device pointer from the pci_dev struct, as well 784 784 * as the private adapter struct 785 785 */ 786 - netdev = (struct net_device *) pci_get_drvdata(pdev); 786 + netdev = pci_get_drvdata(pdev); 787 787 adapter = netdev_priv(netdev); 788 788 789 789 /* Perform device cleanup */
+1 -1
drivers/staging/wlags49_h2/wl_pci.c
··· 458 458 return; 459 459 } 460 460 461 - dev = (struct net_device *)pci_get_drvdata( pdev ); 461 + dev = pci_get_drvdata( pdev ); 462 462 if( dev == NULL ) { 463 463 DBG_ERROR( DbgInfo, "Could not retrieve net_device structure\n" ); 464 464 return;