Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Josh Triplett <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: Andy Whitcroft <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information