diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-23 11:06:54 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-24 00:58:40 +0400 |
commit | 3a93ac0bb666c149e0a43a83e060f3d4b793c6de (patch) | |
tree | 892ec5810249ee2999ff0236fc20b03fe5fee5ad | |
parent | 305a3388b5b3121aff6b10054136b40ca91ab35b (diff) | |
download | linux-3a93ac0bb666c149e0a43a83e060f3d4b793c6de.tar.xz |
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.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/sun/sungem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sungem.c b/drivers/net/ethernet/sun/sungem.c index a235bd9fd980..b5655b79bd3b 100644 --- a/drivers/net/ethernet/sun/sungem.c +++ b/drivers/net/ethernet/sun/sungem.c @@ -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); } } |