Tag: db9314cd351ebd734970c7afc2995a743e34aa02

IB/core: Replace memset with eth_zero_addr

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> 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-off-by: Amitoj Kaur Chawla Signed-off-by: Doug Ledford — …

Continue reading