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:
dcbe8a1
)
net: sunbmac: remove unnecessary dev_set_drvdata()
author
Libo Chen
<libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:27 +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/sunbmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sun/sunbmac.c
b/drivers/net/ethernet/sun/sunbmac.c
index 0a32ca5ad58c45afb9751fd960b1d2e1bd9acf8f..7217ee5d62730acbc43de559abc2fe555e043155 100644
(file)
--- a/
drivers/net/ethernet/sun/sunbmac.c
+++ b/
drivers/net/ethernet/sun/sunbmac.c
@@
-1259,8
+1259,6
@@
static int bigmac_sbus_remove(struct platform_device *op)
free_netdev(net_dev);
- dev_set_drvdata(&op->dev, NULL);
-
return 0;
}