diff options
author | Joe Perches <[email protected]> | 2022-03-23 16:05:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2022-03-23 19:00:34 -0700 |
commit | 481efd7bd6f28febddf189e7a970bb0bc5a53de8 (patch) | |
tree | f4e9a42e1c52e81b596cd14822f03b956aa0e588 /scripts/gdb/linux/mm.py | |
parent | 6e8f42dc9c8548c6b37566f3b8bda1873700c4a6 (diff) |
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/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Cc: Dwaipayan Ray <[email protected]>
Cc: Lukas Bulwahn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions