Joe Perches 507e51418c checkpatch: improve "return is not a function" test
Find a few more cases where parentheses are used around the value of a
return statement.

This now uses the "$balanced_parens" test and also makes the test depend
on perl v5.10 and higher.

This now finds return with parenthesis uses the old code did not find
like:

ERROR: return is not a function, parentheses are not required
#211: FILE: arch/m68k/include/asm/sun3xflop.h:211:
+		return ((error == 0) ? 0 : -1);

Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: David Cohen <david.a.cohen@linux.intel.com>
Acked-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-13 12:09:25 +09:00
..
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2011-05-19 15:59:38 -07:00
2005-04-16 15:20:36 -07:00
2011-06-16 20:40:03 +02:00
2011-08-31 16:12:17 +02:00
2012-10-03 09:03:24 +02:00
2012-06-27 12:44:29 -07:00
2010-03-23 12:26:38 +01:00
2013-04-08 11:47:41 +02:00
2008-04-25 20:18:48 +02:00
2012-07-20 10:36:05 +02:00
2005-04-16 15:20:36 -07:00
2013-03-02 20:09:55 +00:00
2013-08-30 10:20:13 -04:00
2009-06-09 22:37:54 +02:00