diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-21 11:17:07 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-21 17:21:02 -0400 |
commit | 390e1b86abbda7c0195bbe89dc5d2aa38134fdc1 (patch) | |
tree | 70e1f3850304425bb166cc6216c99040145c862f /drivers/net/ethernet/packetengines/hamachi.c | |
parent | 4f12b2f573c5f7ed83e750a40da64ca14767fb91 (diff) | |
download | linux-390e1b86abbda7c0195bbe89dc5d2aa38134fdc1.tar.bz2 |
net: packetengines: 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>
Diffstat (limited to 'drivers/net/ethernet/packetengines/hamachi.c')
-rw-r--r-- | drivers/net/ethernet/packetengines/hamachi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/packetengines/hamachi.c b/drivers/net/ethernet/packetengines/hamachi.c index cac33e5f9bc2..b6bdeb3c1971 100644 --- a/drivers/net/ethernet/packetengines/hamachi.c +++ b/drivers/net/ethernet/packetengines/hamachi.c @@ -1910,7 +1910,6 @@ static void hamachi_remove_one(struct pci_dev *pdev) iounmap(hmp->base); free_netdev(dev); pci_release_regions(pdev); - pci_set_drvdata(pdev, NULL); } } |