summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/common.h
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-09-15 22:14:05 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 01:50:27 +0200
commitacb2cc8b20d6cb9e65c1e442d59a2449d8774157 (patch)
tree54deabaa1238049d0d0a342b7c1b08ad71155c91 /drivers/net/cxgb3/common.h
parentClean up duplicate includes in drivers/net/ (diff)
downloadlinux-acb2cc8b20d6cb9e65c1e442d59a2449d8774157.tar.xz
linux-acb2cc8b20d6cb9e65c1e442d59a2449d8774157.zip
[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>
Diffstat (limited to 'drivers/net/cxgb3/common.h')
0 files changed, 0 insertions, 0 deletions