From: Kris Katterjohn Date: Tue, 17 Jan 2006 23:15:38 +0000 (-0800) Subject: [NET]: Use is_zero_ether_addr() in net/core/netpoll.c X-Git-Tag: v2.6.16-rc2~367^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3860288ee8298bf2784e9a0c37d26d3a82941e35;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 281a632fa6a..ea51f8d02eb 100644 --- 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) {