[PATCH] include/linux/etherdevice.h, kernel 2.6.14
From: Michal Srajer
Date: Sat Oct 29 2005 - 09:11:11 EST
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
michal@xxxxxxx, michal@xxxxxxxxxxxxxxxx
Attachment:
pgp00000.pgp
Description: PGP signature