Skip to contentSkip to conversation

paride/pg.c: xs(): &&/|| confusion

PATCH? Roel Kluin 1 participant 1 message Jan 2, 2009 Block layer

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

&&/|| confusion

---
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?

drivers/block/paride/pg.c +1 -1
index 9dfa271..c397b3d 100644
@@ -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 == ' ')