Staging: wilc1000: host_interface: Replace memset with eth_zero_addr
authorShraddha Barke <shraddha.6596@gmail.com>
Mon, 5 Oct 2015 11:30:33 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:59:17 +0000 (10:59 +0100)
commit281dd5ac142fc9ae19ba12353e860cfcab13b8ab
treee64424963b28327eee5325cbb6ba91785704d3f9
parentbcf0265384ded8c89264202faf59fb538c6b25c4
Staging: wilc1000: host_interface: 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 patch used -

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

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

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
This page took 0.024718 seconds and 5 git commands to generate.