diff options
author | 2017-09-08 16:16:01 -0700 | |
---|---|---|
committer | 2017-09-08 18:26:50 -0700 | |
commit | 63b7c73ec86b8c73560d22c7552bc6f47f0b8da9 (patch) | |
tree | fdcc058c6c373480df2e372de0a6e52ae7380a59 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | lib/oid_registry.c: X.509: fix the buffer overflow in the utility function for OID string (diff) | |
download | wireguard-linux-63b7c73ec86b8c73560d22c7552bc6f47f0b8da9.tar.xz wireguard-linux-63b7c73ec86b8c73560d22c7552bc6f47f0b8da9.zip |
checkpatch: add --strict check for ifs with unnecessary parentheses
An if statement test like
if ((foo == bar) && (baz != qux))
can arguably be better written without the parentheses as
if (foo == bar && baz != qux)
Add a test to find these cases.
Link: http://lkml.kernel.org/r/dcd0561ddd0fa43c51a420d53b550d738bf42001.1502734458.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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions