Skip to content

Commit

Permalink
paride/pg.c: xs(): &&/|| confusion
Browse files Browse the repository at this point in the history
&&/|| confusion

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Roel Kluin authored and Jens Axboe committed Feb 18, 2009
1 parent a60e78e commit c8cbec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/paride/pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 == ' ')
Expand Down

0 comments on commit c8cbec6

Please sign in to comment.