Staging: wilc1000: Replace memset with eth_zero_addr
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sun, 21 Jun 2015 05:26:21 +0000 (10:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jul 2015 02:23:35 +0000 (19:23 -0700)
commit8ca1b55a49f3b8e139fb4567b966f03a734e744f
treec4001b377000135ba484c64c847631e7dec4edbe
parente26bb71da9cf3c54cd8b1c1341a9c9b89e704ca6
Staging: wilc1000: Replace memset with eth_zero_addr

Use eth_zero_addr to assign the zero address to the given address
array instead of memset when second argument is address of zero.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@eth_zero_addr@
expression e;
@@

-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);
// </smpl>

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_mon.c