[NET]: Use is_zero_ether_addr() in net/core/netpoll.c
authorKris Katterjohn <kjak@users.sourceforge.net>
Tue, 17 Jan 2006 23:15:38 +0000 (15:15 -0800)
committerDavid 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

index 281a632fa6a6eaf37085797076177f394b55327a..ea51f8d02eb8654d0533afd7bc5eb38a0e08c7fd 100644 (file)
@@ -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) {