summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/tile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-05-27 14:03:51 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-30 17:06:23 -0700
commit884460178fba4a2b2522c21e85c67db95f166354 (patch)
tree8d370cf427554922e32e3171724a283c66a1ab1a /drivers/net/ethernet/tile
parentd581ebf5a1f82a27d7df21bd1d76e517c67b49d5 (diff)
downloadlinux-884460178fba4a2b2522c21e85c67db95f166354.tar.gz
linux-884460178fba4a2b2522c21e85c67db95f166354.tar.bz2
linux-884460178fba4a2b2522c21e85c67db95f166354.zip
net: tile: Remove unnecessary memset of netdev private data
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>
Diffstat (limited to 'drivers/net/ethernet/tile')
-rw-r--r--drivers/net/ethernet/tile/tilegx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c
index 7d80d2e6a69c..5eca9bb185a0 100644
--- 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;