From: Joe Perches Date: Thu, 23 Jan 2014 23:54:47 +0000 (-0800) Subject: checkpatch: check for if's with unnecessary parentheses X-Git-Tag: v3.14-rc1~108^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=189248d8f4f3ac2fba30da9b40133b5891df95fc;p=pandora-kernel.git 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 Reviewed-by: Josh Triplett Cc: Manfred Spraul Cc: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed