]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
checkpatch: allow parentheses on return for comparisons
authorAndy Whitcroft <apw@canonical.com>
Tue, 6 Jan 2009 22:41:24 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:16 +0000 (15:59 -0800)
commit86f9d059c6bc548f6337f01117897a4c823cb4ee
treef7861404c3e84268a890f1cc3517bebaaa5bc49b
parent1e85572697b348b1a126520349a29654f2ae6a12
checkpatch: allow parentheses on return for comparisons

It seems to be a common idiom to include braces on conditionals in all
contexts including return.  Allow this exception to the return is not a
function checks.  Reported by Kay Sievers.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl