Re: [PATCH 4/5] checkpatch: check for if's with unnecessary parentheses

2013-12-26 Thread Josh Triplett
On Thu, Dec 26, 2013 at 11:20:31AM -0800, Joe Perches wrote: > 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 Perc

[PATCH 4/5] checkpatch: check for if's with unnecessary parentheses

2013-12-26 Thread Joe Perches
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 --- scripts/checkpatch.pl | 14 ++ 1 file changed, 14 ins