Skip to content
Commit db9314cd authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Doug Ledford
Browse files

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: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent eaebc7d2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment