public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fix oddball boolean logic in s390 netiucv
@ 2006-06-23  0:49 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2006-06-23  0:49 UTC (permalink / raw)
  To: Linux Kernel; +Cc: akpm

Signed-off-by: Dave Jones <davej@redhat.com>

--- linux-2.6/drivers/s390/net/netiucv.c~	2006-06-22 20:47:35.000000000 -0400
+++ linux-2.6/drivers/s390/net/netiucv.c	2006-06-22 20:48:05.000000000 -0400
@@ -2029,7 +2029,7 @@ remove_write (struct device_driver *drv,
                 count = IFNAMSIZ-1;
 
         for (i=0, p=(char *)buf; i<count && *p; i++, p++) {
-                if ((*p == '\n') | (*p == ' ')) {
+                if ((*p == '\n') || (*p == ' ')) {
                         /* trailing lf, grr */
                         break;
                 } else {

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-23  0:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23  0:49 fix oddball boolean logic in s390 netiucv Dave Jones

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