From 950e2ea63fca9ec6d30116132401c5f6c4e48018 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 1 Nov 2005 16:52:11 -0800 Subject: [PATCH] --- yaml --- r: 12240 b: refs/heads/master c: 2407534f8be8015d585104bcc4374870b6b70fe7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/etherdevice.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index e3020f827625..9012a8d223a0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 450b5b18983cc15f4d27bd3f62901e02281e818b +refs/heads/master: 2407534f8be8015d585104bcc4374870b6b70fe7 diff --git a/trunk/include/linux/etherdevice.h b/trunk/include/linux/etherdevice.h index cc84934f9059..17460c85df7b 100644 --- a/trunk/include/linux/etherdevice.h +++ b/trunk/include/linux/etherdevice.h @@ -71,8 +71,7 @@ static inline int is_multicast_ether_addr(const u8 *addr) static inline int is_broadcast_ether_addr(const u8 *addr) { - return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && - (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff)); + return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff; } /**