]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: Remove unnecessary memset of stats in netdev private data
authorTobias Klauser <tklauser@distanz.ch>
Tue, 29 Nov 2016 13:35:07 +0000 (14:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 19:26:26 +0000 (14:26 -0500)
commit1e5da946da8a7e857cc2d32391acbab93a1997c0
tree6f3e785f51260075ce764e49e7f57986f2e1c342
parent8dca4c1513eabe3284b1e80ce2f8c697f66144d6
ehea: Remove unnecessary memset of stats in netdev private data

The memory for netdev private data is allocated using kzalloc/vzalloc in
alloc_netdev_mqs, thus there is no need to zero the stats portion of it
again in the driver's probe function.

In any case, the size for the memset is wrong as the stats member is of
type rtnl_link_stats64, not net_device_stats.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c