]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Replace memset with eth_zero_addr
authorShyam Saini <mayhs11saini@gmail.com>
Mon, 16 Jan 2017 03:56:21 +0000 (09:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 16:46:54 +0000 (11:46 -0500)
commit3f39980b4a1ab5fab6f8360efe9d871d38fd129c
tree92e55d5942b02558d6d02cb8d27156be63d659c9
parente29b5edaf3e2db6f29d2a4e53c183b9673eb9328
sfc: Replace memset with eth_zero_addr

Use eth_zero_addr to assign zero address to the given address array
instead of memset when the second argument in memset is address
of zero which makes the code clearer and also add header
file linux/etherdevice.h

Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Acked-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c