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 <firstname.lastname@example.org>
Reviewed-by: Josh Triplett <email@example.com>
Cc: Manfred Spraul <firstname.lastname@example.org>
Cc: Andy Whitcroft <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
1 file changed