[PATCH] include/linux/etherdevice.h, kernel 2.6.14

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux