projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ac7c9
)
net: fddi: remove unnecessary pci_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Tue, 10 Dec 2013 03:49:34 +0000
(12:49 +0900)
committer
David S. Miller
<
[email protected]
>
Wed, 11 Dec 2013 03:31:32 +0000
(22:31 -0500)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/fddi/skfp/skfddi.c
patch
|
blob
|
history
diff --git
a/drivers/net/fddi/skfp/skfddi.c
b/drivers/net/fddi/skfp/skfddi.c
index 713d303a06a9e1d2ea06e198a9682beb4bc54fc2..d5f58121b2e22d9463e805ebd3547d79eb874d69 100644
(file)
--- 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)
free_netdev(p);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
}
/*