summaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/item_ops.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-05-09 00:56:05 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-05-09 02:15:11 +0200
commitf6950a735f29e782bc219ece22bb91d6e1ab7bbc (patch)
treeaeb8aacfa0c31e53997c33ee0939ff996fcfd4f7 /fs/reiserfs/item_ops.c
parentcheckpatch: improve the embedded function name test for patch contexts (diff)
downloadlinux-f6950a735f29e782bc219ece22bb91d6e1ab7bbc.tar.xz
linux-f6950a735f29e782bc219ece22bb91d6e1ab7bbc.zip
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/reiserfs/item_ops.c')
0 files changed, 0 insertions, 0 deletions