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:
40706af
)
atm: he: remove unnecessary pci_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Tue, 10 Dec 2013 03:51:46 +0000
(12:51 +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/atm/he.c
patch
|
blob
|
history
diff --git
a/drivers/atm/he.c
b/drivers/atm/he.c
index 8557adcd34ee88a82cfb9a805859cba5ad79bef2..aa6be2698669652ada3e9bbebf3ad597831b24ec 100644
(file)
--- a/
drivers/atm/he.c
+++ b/
drivers/atm/he.c
@@
-419,7
+419,6
@@
static void he_remove_one(struct pci_dev *pci_dev)
atm_dev_deregister(atm_dev);
kfree(he_dev);
- pci_set_drvdata(pci_dev, NULL);
pci_disable_device(pci_dev);
}