wan: dscc4: remove unnecessary pci_set_drvdata()
PATCH 1/5 wan: dscc4: 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/wan/dscc4.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/wan/dscc4.c +0 -2
@@ -699,8 +699,6 @@ static void dscc4_free1(struct pci_dev *pdev)for (i =0 ; i < dev_per_card; i++)unregister_hdlc_device (dscc4_to_dev (root + i)); -pci_set_drvdata (pdev,NULL ); -for (i =0 ; i < dev_per_card; i++)free_netdev (root[i].dev);kfree (root);
Signature · 1 line
1.7.10.4
PATCH 2/5 wan: lmc: 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/wan/lmc/lmc_main.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/wan/lmc/lmc_main.c +0 -2
@@ -973,7 +973,6 @@ static int lmc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)return 0 ; err_hdlcdev: -pci_set_drvdata (pdev,NULL );kfree (sc); err_kzalloc:pci_release_regions (pdev);
@@ -995,7 +994,6 @@ static void lmc_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/5 wan: pc300too: 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/wan/pc300too.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wan/pc300too.c +0 -1
@@ -281,7 +281,6 @@ static void pc300_pci_remove_one(struct pci_dev *pdev)pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );if (card->ports[0 ].netdev)free_netdev (card->ports[0 ].netdev);if (card->ports[1 ].netdev)
Signature · 1 line
1.7.10.4
PATCH 4/5 wan: pci200syn: 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/wan/pci200syn.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wan/pci200syn.c +0 -1
@@ -260,7 +260,6 @@ static void pci200_pci_remove_one(struct pci_dev *pdev)pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );if (card->ports[0 ].netdev)free_netdev (card->ports[0 ].netdev);if (card->ports[1 ].netdev)
Signature · 1 line
1.7.10.4
PATCH 5/5 wan: wanxl: 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/wan/wanxl.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wan/wanxl.c +0 -1
@@ -542,7 +542,6 @@ static void wanxl_pci_remove_one(struct pci_dev *pdev)pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );kfree (card); }
Signature · 1 line
1.7.10.4