Skip to content

Commit

Permalink
[NET]: Use is_zero_ether_addr() in net/core/netpoll.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kris Katterjohn authored and David S. Miller committed Jan 17, 2006
1 parent 64af4c1 commit 3860288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ int netpoll_setup(struct netpoll *np)
}
}

if (!memcmp(np->local_mac, "\0\0\0\0\0\0", 6) && ndev->dev_addr)
if (is_zero_ether_addr(np->local_mac) && ndev->dev_addr)
memcpy(np->local_mac, ndev->dev_addr, 6);

if (!np->local_ip) {
Expand Down

0 comments on commit 3860288

Please sign in to comment.