net: ethernet: remove unnecessary pci_set_drvdata() part 4
Subsystems (5)
cover net: ethernet: remove unnecessary pci_set_drvdata() part 4
Since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound), the driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/sun/niu.c | 2 -- drivers/net/ethernet/sun/sungem.c | 2 -- drivers/net/ethernet/tehuti/tehuti.c | 1 - drivers/net/ethernet/ti/tlan.c | 1 - drivers/net/ethernet/toshiba/spider_net.c | 1 - drivers/net/ethernet/toshiba/tc35815.c | 1 - drivers/net/ethernet/via/via-rhine.c | 1 - 7 files changed, 9 deletions(-)
PATCH 1/7 net: sungem: remove unnecessary pci_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/sun/sungem.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/sun/sungem.c +0 -2
@@ -2806,8 +2806,6 @@ static void gem_remove_one(struct pci_dev *pdev)iounmap (gp->regs);pci_release_regions (pdev);free_netdev (dev); - -pci_set_drvdata (pdev,NULL ); } }
Signature · 1 line
1.7.10.4
PATCH 2/7 net: niu: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/sun/niu.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/sun/niu.c +0 -2
@@ -9875,7 +9875,6 @@ err_out_free_res: err_out_disable_pdev:pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );return err; }
@@ -9900,7 +9899,6 @@ static void niu_pci_remove_one(struct pci_dev *pdev)free_netdev (dev);pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL ); } }
Signature · 1 line
1.7.10.4
PATCH 3/7 net: tehuti: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/tehuti/tehuti.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/tehuti/tehuti.c +0 -1
@@ -2447,7 +2447,6 @@ static void bdx_remove(struct pci_dev *pdev)iounmap (nic->regs);pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );vfree (nic);RET ();
Signature · 1 line
1.7.10.4
PATCH 4/7 net: tlan: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/ti/tlan.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/ti/tlan.c +0 -1
@@ -319,7 +319,6 @@ static void tlan_remove_one(struct pci_dev *pdev)free_netdev (dev); -pci_set_drvdata (pdev,NULL );cancel_work_sync (&priv->tlan_tqueue); }
Signature · 1 line
1.7.10.4
PATCH 5/7 net: spider_net: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/toshiba/spider_net.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/toshiba/spider_net.c +0 -1
@@ -2478,7 +2478,6 @@ out_release_regions:pci_release_regions (pdev); out_disable_dev:pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );return NULL ; }
Signature · 1 line
1.7.10.4
PATCH 6/7 net: tc35815: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/toshiba/tc35815.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/toshiba/tc35815.c +0 -1
@@ -887,7 +887,6 @@ static void tc35815_remove_one(struct pci_dev *pdev)mdiobus_free (lp->mii_bus);unregister_netdev (dev);free_netdev (dev); -pci_set_drvdata (pdev,NULL ); } static int
Signature · 1 line
1.7.10.4
PATCH 7/7 net: via-rhine: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/ethernet/via/via-rhine.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/via/via-rhine.c +0 -1
@@ -2292,7 +2292,6 @@ static void rhine_remove_one(struct pci_dev *pdev)free_netdev (dev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL ); }static void rhine_shutdown (struct pci_dev *pdev)
Signature · 1 line
1.7.10.4