diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-09 22:49:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-10 22:31:32 -0500 |
commit | 49f74ed6da4d70adc81be36f4dde22fa23f28171 (patch) | |
tree | c9717fb89593d56a78cd176b9e512fef12e08295 /drivers/net/fddi/skfp | |
parent | 79ac7c941124866a72f000bb1fbb65dc1d1cf8cb (diff) |
net: fddi: 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/fddi/skfp')
-rw-r--r-- | drivers/net/fddi/skfp/skfddi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/fddi/skfp/skfddi.c b/drivers/net/fddi/skfp/skfddi.c index 713d303a06a9..d5f58121b2e2 100644 --- a/drivers/net/fddi/skfp/skfddi.c +++ b/drivers/net/fddi/skfp/skfddi.c | |||
@@ -351,7 +351,6 @@ static void skfp_remove_one(struct pci_dev *pdev) | |||
351 | free_netdev(p); | 351 | free_netdev(p); |
352 | 352 | ||
353 | pci_disable_device(pdev); | 353 | pci_disable_device(pdev); |
354 | pci_set_drvdata(pdev, NULL); | ||
355 | } | 354 | } |
356 | 355 | ||
357 | /* | 356 | /* |