summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-05-09 01:56:05 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-09 03:15:11 +0300
commitf6950a735f29e782bc219ece22bb91d6e1ab7bbc (patch)
treeaeb8aacfa0c31e53997c33ee0939ff996fcfd4f7 /fs
parent74fd4f347bfc10c1b19a18d0760f220eed1b2023 (diff)
downloadlinux-f6950a735f29e782bc219ece22bb91d6e1ab7bbc.tar.xz
checkpatch: improve the SUSPECT_CODE_INDENT test
The current SUSPECT_CODE_INDENT test does not recognize several defective code style defects where code following a logical test is inappropriately indented. Before this patch, for code like: if (foo) bar(); checkpatch would not emit a warning. Improve the test to warn when code after a logical test has the same indentation as the logical test. Perform the same indentation test for "else" blocks too. Link: http://lkml.kernel.org/r/df2374b68c4a68af2b7ef08afe486584811f610a.1493683942.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions