print the line twice when trailing statements in the same line

From: Dotan Barak
Date: Mon Oct 20 2008 - 15:31:17 EST


I executed version 0.24 on a file and i noticed that when
a tailing statement is being declared at the same line with "while, checkpatch
prints the erroneous line twice.

Here is an example of the output:

ERROR: trailing statements should be on next line
#651: FILE: idbm.c:651:
+ while (*nl && isspace(c = *nl)) nl++;
+ while (*nl && isspace(c = *nl)) nl++;

Is this is the expected behavior?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at