This replaces a memcmp() with is_zero_ether_addr().

Signed-off-by: Kris Katterjohn <[EMAIL PROTECTED]>

Thanks!

--- x/net/core/netpoll.c        2006-01-17 08:25:32.000000000 -0600
+++ y/net/core/netpoll.c        2006-01-17 15:45:01.000000000 -0600
@@ -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) {


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to