projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d581ebf
)
net: tile: Remove unnecessary memset of netdev private data
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 27 May 2014 12:03:51 +0000
(14:03 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sat, 31 May 2014 00:06:23 +0000
(17:06 -0700)
The memory for private data is allocated using kzalloc/vzalloc in
alloc_netdev_mqs, thus there is no need to zero it again in the driver.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tile/tilegx.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/tile/tilegx.c
b/drivers/net/ethernet/tile/tilegx.c
index 7d80d2e6a69cf26fd0843098a27032d0c78b0d0d..5eca9bb185a0a9fede62bc406aa4abfadf08d2c7 100644
(file)
--- a/
drivers/net/ethernet/tile/tilegx.c
+++ b/
drivers/net/ethernet/tile/tilegx.c
@@
-2211,7
+2211,6
@@
static void tile_net_dev_init(const char *name, const uint8_t *mac)
/* Initialize "priv". */
priv = netdev_priv(dev);
- memset(priv, 0, sizeof(*priv));
priv->dev = dev;
priv->channel = -1;
priv->loopify_channel = -1;