]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: e1000e: Use is_multicast_ether_addr helper
authorTobias Klauser <tklauser@distanz.ch>
Sun, 3 Jul 2011 23:47:04 +0000 (23:47 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 2 Feb 2012 13:18:58 +0000 (21:18 +0800)
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 3e714ad3c2a07ee120044b72222cc20c14959efb)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/lib.c

index 5107efd536ad44b6c606c91e34ff73360bdfc3e6..a68f76707bb0111a2951f98accc13a8b6609d9d4 100644 (file)
@@ -221,7 +221,7 @@ s32 e1000_check_alt_mac_addr_generic(struct e1000_hw *hw)
        }
 
        /* if multicast bit is set, the alternate address will not be used */
-       if (alt_mac_addr[0] & 0x01) {
+       if (is_multicast_ether_addr(alt_mac_addr)) {
                e_dbg("Ignoring Alternate Mac Address with MC bit set\n");
                goto out;
        }