diff options
author | Joe Perches <joe@perches.com> | 2022-03-23 16:05:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-03-23 19:00:34 -0700 |
commit | 481efd7bd6f28febddf189e7a970bb0bc5a53de8 (patch) | |
tree | f4e9a42e1c52e81b596cd14822f03b956aa0e588 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 6e8f42dc9c8548c6b37566f3b8bda1873700c4a6 (diff) | |
download | lwn-481efd7bd6f28febddf189e7a970bb0bc5a53de8.tar.gz lwn-481efd7bd6f28febddf189e7a970bb0bc5a53de8.zip |
checkpatch: add --fix option for some TRAILING_STATEMENTS
Single line code like:
if (foo) bar;
should generally be written:
if (foo)
bar;
Add a --fix test to do so.
This fix is not done when an ASSIGN_IN_IF in the same line exists.
Link: https://lkml.kernel.org/r/20220128185924.80137-2-joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions