From: Tobias Klauser Date: Sun, 3 Jul 2011 23:47:04 +0000 (+0000) Subject: net: e1000e: Use is_multicast_ether_addr helper X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e714ad3c2a07ee120044b72222cc20c14959efb;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git net: e1000e: Use is_multicast_ether_addr helper Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller --- diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c index bd72b8167df9..65580b405942 100644 --- a/drivers/net/e1000e/lib.c +++ b/drivers/net/e1000e/lib.c @@ -220,7 +220,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; }