projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f076e
)
net: sunhme: remove unnecessary dev_set_drvdata()
author
Libo Chen
<libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:31 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Aug 2013 19:27:04 +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/sun/sunhme.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ethernet/sun/sunhme.c
b/drivers/net/ethernet/sun/sunhme.c
index b90d31145ac144189627f386133b0a62d10a9f54..c67e683a36e1e8edeac343e5b7fa56fa7547a926 100644
(file)
--- a/
drivers/net/ethernet/sun/sunhme.c
+++ b/
drivers/net/ethernet/sun/sunhme.c
@@
-3250,8
+3250,6
@@
static int hme_sbus_remove(struct platform_device *op)
free_netdev(net_dev);
- dev_set_drvdata(&op->dev, NULL);
-
return 0;
}