ethernet: Use eth_<foo>_addr instead of memset
Use the built-in function instead of memset. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e8ab38cfcb
commit
c7bf716940
@@ -4144,7 +4144,7 @@ static int hw_del_addr(struct ksz_hw *hw, u8 *mac_addr)
|
||||
|
||||
for (i = 0; i < hw->addr_list_size; i++) {
|
||||
if (ether_addr_equal(hw->address[i], mac_addr)) {
|
||||
memset(hw->address[i], 0, ETH_ALEN);
|
||||
eth_zero_addr(hw->address[i]);
|
||||
writel(0, hw->io + ADD_ADDR_INCR * i +
|
||||
KS_ADD_ADDR_0_HI);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user