checkpatch: fix false positive MISSING_BREAK warnings with --file
authorJoe Perches <[email protected]>
Wed, 6 Aug 2014 23:11:25 +0000 (16:11 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:29 +0000 (18:01 -0700)
commite81f239b4db2ad6c4b029ed92f0222601ce42abe
treee031acf2105cba2579c89556e80c0143a54b75f0
parent1813087dbc54ff1485bcc84b66d34052eaf23387
checkpatch: fix false positive MISSING_BREAK warnings with --file

Using --file mode can give false positives with MISSING_BREAK
fall-through warnings on simple but long multiple consecutive case
statements.

Look for all lines before a case statement for a switch or a statement
when using --file mode.

Fix a misspelling of preceded while there.

Signed-off-by: Joe Perches <[email protected]>
Reported-by: Lee Jones <[email protected]>
Acked-by: Lee Jones <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl