diff options
| author | Joe Perches <[email protected]> | 2013-11-12 15:10:13 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-11-13 12:09:25 +0900 |
| commit | 507e51418ca0c98640310aa02450720825b2b6b1 (patch) | |
| tree | c31ed1d6e0fa1686ac3738aea997a82fc524bade /tools/perf/scripts/python | |
| parent | 4783f894d0f3bfb107cf3b1d9aed1f1a0672ee1d (diff) | |
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 <[email protected]>
Tested-by: David Cohen <[email protected]>
Acked-by: David Cohen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions