public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/linux/etherdevice.h, kernel 2.6.14
@ 2005-10-29 14:10 Michal Srajer
  2005-10-29 14:17 ` Russell King
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Srajer @ 2005-10-29 14:10 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

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@post.pl, michal@mat.uni.torun.pl


[-- Attachment #2: Type: application/pgp-signature, Size: 185 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-30 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29 14:10 [PATCH] include/linux/etherdevice.h, kernel 2.6.14 Michal Srajer
2005-10-29 14:17 ` Russell King
     [not found]   ` <20051029154027.GC17715@ultra60.mat.uni.torun.pl>
2005-10-29 16:00     ` Russell King
2005-10-29 21:36       ` J.A. Magallon
2005-10-30 10:22         ` Eric Piel
2005-10-30 10:46         ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox