linux_dsm_epyc7002/drivers/net/myri10ge
Mariusz Kozlowski acb2cc8b20 [PATCH] drivers/net: remove superfluous memset
This patch covers something like this:

dev = alloc_*dev(...
...
priv = netdev_priv(dev);
memset(priv, 0, sizeof(*priv));

The memset() here is superfluous. alloc_netdev() uses kzalloc()
to allocate needed memory so there is no need to zero the priv region
twice.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:50:27 -07:00
..
Makefile [PATCH] Add Myri-10G Ethernet driver 2006-05-24 00:27:31 -04:00
myri10ge_mcp_gen_header.h [PATCH] myri10ge annotations 2006-12-04 16:07:23 -05:00
myri10ge_mcp.h myri10ge: update firmware headers 2007-05-08 01:15:15 -04:00
myri10ge.c [PATCH] drivers/net: remove superfluous memset 2007-10-10 16:50:27 -07:00