projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110a183
)
net: emac: remove unnecessary dev_set_drvdata()
author
Libo Chen
<libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:45 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Aug 2013 19:27:05 +0000
(12:27 -0700)
Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/ibm/emac/core.c
b/drivers/net/ethernet/ibm/emac/core.c
index d300a0c0eafc0521a4e86688abd7e54afd0ce58e..2d3b064d6924a90ee4e9715615faf83e50a53512 100644
(file)
--- a/
drivers/net/ethernet/ibm/emac/core.c
+++ b/
drivers/net/ethernet/ibm/emac/core.c
@@
-2955,8
+2955,6
@@
static int emac_remove(struct platform_device *ofdev)
DBG(dev, "remove" NL);
- dev_set_drvdata(&ofdev->dev, NULL);
-
unregister_netdev(dev->ndev);
cancel_work_sync(&dev->reset_work);