diff options
author | Kris Katterjohn <kjak@users.sourceforge.net> | 2006-01-17 18:15:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-17 18:15:38 -0500 |
commit | 3860288ee8298bf2784e9a0c37d26d3a82941e35 (patch) | |
tree | 418993a3f8a15e01a8678c5750399ac7a6ae6811 /net | |
parent | 64af4c13622511257daba762b32d9d20f2d0c4b5 (diff) |
[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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/netpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 281a632fa6a6..ea51f8d02eb8 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -703,7 +703,7 @@ int netpoll_setup(struct netpoll *np) | |||
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 | memcpy(np->local_mac, ndev->dev_addr, 6); | 707 | memcpy(np->local_mac, ndev->dev_addr, 6); |
708 | 708 | ||
709 | if (!np->local_ip) { | 709 | if (!np->local_ip) { |