Commit 3860288ee8298bf2784e9a0c37d26d3a82941e35

Authored by Kris Katterjohn
Committed by David S. Miller
1 parent 64af4c1362

[NET]: Use is_zero_ether_addr() in net/core/netpoll.c

This replaces a memcmp() with is_zero_ether_addr().

Signed-off-by: Kris Katterjohn <kjak@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -703,7 +703,7 @@
703 703 }
704 704 }
705 705  
706   - if (!memcmp(np->local_mac, "\0\0\0\0\0\0", 6) && ndev->dev_addr)
  706 + if (is_zero_ether_addr(np->local_mac) && ndev->dev_addr)
707 707 memcpy(np->local_mac, ndev->dev_addr, 6);
708 708  
709 709 if (!np->local_ip) {