checkpatch: return is not a function -- parentheses for casts are ok too
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:28:56 +0000 (21:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:25 +0000 (10:47 -0700)
commitfee61c47d15270bdea699a8a3dd867f0825c3541
tree75402264c753a2a6bf5c198922fbbf571d990423
parent6cbb2e711128b505209f7c910018aac77335c887
checkpatch: return is not a function -- parentheses for casts are ok too

Casts require parentheses so it is possible to have something like this:

return (int)(*a);

This miss trips the complexity function.  Ensure that the two separate
parenthesised sections are not coelesced.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl