[PATCH?] paride/pg.c: xs(): &&/|| confusion

From: Roel Kluin
Date: Fri Jan 02 2009 - 07:11:22 EST


&&/|| confusion

Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
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 == ' ')
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/