Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88446017 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarChris Metcalf <cmetcalf@tilera.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d581ebf5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;