IB/core: Replace memset with eth_zero_addr
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 12 Feb 2016 07:46:10 +0000 (13:16 +0530)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Mar 2016 15:19:41 +0000 (10:19 -0500)
commitdb9314cd351ebd734970c7afc2995a743e34aa02
treea357e178b4f4b4f4317308eeef42c73a0844745f
parenteaebc7d21e102d86b389c77686c7e6258dd6d479
IB/core: 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 used to make this change is as follows:

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

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

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c