diff options
author | Joe Perches <joe@perches.com> | 2014-01-24 00:54:47 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-24 01:36:58 +0100 |
commit | 189248d8f4f3ac2fba30da9b40133b5891df95fc (patch) | |
tree | 8c1f512c32463c29de4792b17a30822555cdbc76 /scripts/mkversion | |
parent | checkpatch: improve space before tab --fix option (diff) | |
download | linux-189248d8f4f3ac2fba30da9b40133b5891df95fc.tar.xz linux-189248d8f4f3ac2fba30da9b40133b5891df95fc.zip |
checkpatch: check for if's with unnecessary parentheses
If statements don't need multiple parentheses around tested comparisons
like "if ((foo == bar))".
An == comparison maybe a sign of an intended assignment, so emit a
slightly different message if so.
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/mkversion')
0 files changed, 0 insertions, 0 deletions