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:
42b9023
)
net: dl2k: remove unnecessary pci_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Mon, 21 Oct 2013 02:11:14 +0000
(11:11 +0900)
committer
David S. Miller
<
[email protected]
>
Mon, 21 Oct 2013 21:21:00 +0000
(17:21 -0400)
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/ethernet/dlink/dl2k.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/dlink/dl2k.c
b/drivers/net/ethernet/dlink/dl2k.c
index afa8e3af2c4d6840a9eee8c9c46d0e3f6df22a02..4fb756d219f700bfb82a37d62e9cb078fca22024 100644
(file)
--- a/
drivers/net/ethernet/dlink/dl2k.c
+++ b/
drivers/net/ethernet/dlink/dl2k.c
@@
-1746,7
+1746,6
@@
rio_remove1 (struct pci_dev *pdev)
pci_release_regions (pdev);
pci_disable_device (pdev);
}
- pci_set_drvdata (pdev, NULL);
}
static struct pci_driver rio_driver = {