[PATCH] checkpatch: Add --strict check for ifs with unnecessary parentheses

2017-08-14 Thread Joe Perches
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. Signed-off-by: Joe Perches --- David Miller recently commented on the use of

[PATCH] checkpatch: Add --strict check for ifs with unnecessary parentheses

2017-08-14 Thread Joe Perches
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. Signed-off-by: Joe Perches --- David Miller recently commented on the use of unnecessary