public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH?] paride/pg.c: xs(): &&/|| confusion
@ 2009-01-02 12:11 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-01-02 12:11 UTC (permalink / raw)
  To: lkml; +Cc: tim

&&/|| confusion

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
to Tim: If you can no longer maintain, you may want to remove your
listing in the maintainers file. 
Can anyone else test this on hardware?

diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c
index 9dfa271..c397b3d 100644
--- a/drivers/block/paride/pg.c
+++ b/drivers/block/paride/pg.c
@@ -422,7 +422,7 @@ static void xs(char *buf, char *targ, int len)
 
 	for (k = 0; k < len; k++) {
 		char c = *buf++;
-		if (c != ' ' || c != l)
+		if (c != ' ' && c != l)
 			l = *targ++ = c;
 	}
 	if (l == ' ')

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

only message in thread, other threads:[~2009-01-02 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-02 12:11 [PATCH?] paride/pg.c: xs(): &&/|| confusion Roel Kluin

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