Re: [PATCH] IB/core: Replace memset with eth_zero_addr

2016-02-18 Thread Doug Ledford
On 2/12/2016 2:46 AM, Amitoj Kaur Chawla wrote: > 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 used to make this change is as follows: > > // > @eth_zero_addr@ > expression e

[PATCH] IB/core: Replace memset with eth_zero_addr

2016-02-11 Thread Amitoj Kaur Chawla
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 used to make this change is as follows: // @eth_zero_addr@ expression e; @@ -memset(e,0x00,ETH_ALEN); +eth_zero_addr(e); // Signed-o