mirror of https://gitee.com/openkylin/linux.git
acb2cc8b20
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
fec.h | ||
fs_enet-main.c | ||
fs_enet.h | ||
mac-fcc.c | ||
mac-fec.c | ||
mac-scc.c | ||
mii-bitbang.c | ||
mii-fec.c |