Description: Very small optimization patch for include/linux/etherdevice.h in 2.6.14 kernel. Patch: ---------------cut-here--------------- --- linux-2.6.14/include/linux/etherdevice.h 2005-10-28 00:02:08.000000000 +0000 +++ linux/include/linux/etherdevice.h 2005-10-29 14:57:20.000000000 +0000 @@ -53,7 +53,7 @@ */ static inline int is_zero_ether_addr(const u8 *addr) { - return !(addr[0] | addr[1] | addr[2] | addr[3] | addr[4] | addr[5]); + return !(addr[0] || addr[1] || addr[2] || addr[3] || addr[4] || addr[5]); } /** ---------------cut-here--------------- Michal Srajer [email protected], [email protected]
Attachment:
pgpHH45ZA3p3A.pgp
Description: PGP signature
- Follow-Ups:
- Re: [PATCH] include/linux/etherdevice.h, kernel 2.6.14
- From: Russell King <[email protected]>
- Re: [PATCH] include/linux/etherdevice.h, kernel 2.6.14
- Prev by Date: Re: [PATCH 02/14] Big kfree NULL check cleanup - drivers/net
- Next by Date: Re: [PATCH] missing include in infiniband
- Previous by thread: 2.6.14-git1 fails compile -- i386/pci/fixup.c
- Next by thread: Re: [PATCH] include/linux/etherdevice.h, kernel 2.6.14
- Index(es):