projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64af4c1
)
[NET]: Use is_zero_ether_addr() in net/core/netpoll.c
author
Kris Katterjohn
<kjak@users.sourceforge.net>
Tue, 17 Jan 2006 23:15:38 +0000
(15:15 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 17 Jan 2006 23:15:38 +0000
(15:15 -0800)
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>
net/core/netpoll.c
patch
|
blob
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index 281a632fa6a6eaf37085797076177f394b55327a..ea51f8d02eb8654d0533afd7bc5eb38a0e08c7fd 100644
(file)
--- a/
net/core/netpoll.c
+++ b/
net/core/netpoll.c
@@
-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) {