OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea5a43d
)
ax88796: remove memset of private data
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Sat, 19 Feb 2011 21:12:27 +0000
(22:12 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 21 Feb 2011 12:13:40 +0000
(13:13 +0100)
It's allocated via alloc_netdev, thus already zeroed.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/ax88796.c
patch
|
blob
|
history
diff --git
a/drivers/net/ax88796.c
b/drivers/net/ax88796.c
index
c49c3b1
..
885f04e
100644
(file)
--- a/
drivers/net/ax88796.c
+++ b/
drivers/net/ax88796.c
@@
-858,8
+858,6
@@
static int ax_probe(struct platform_device *pdev)
ei_local = netdev_priv(dev);
ax = to_ax_dev(dev);
- memset(ax, 0, sizeof(struct ax_device));
-
spin_lock_init(&ax->mii_lock);
ax->dev = pdev;