diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-23 21:28:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 10:47:25 -0700 |
commit | 6ef9b297f6e8850da3be9c9ff5f00385c0977004 (patch) | |
tree | 427f87ff219ee166bbb031359c6f97fcaf386273 /scripts | |
parent | beae6332493a40116dba24928154621f2e88b9a9 (diff) | |
download | kernel_samsung_aries-6ef9b297f6e8850da3be9c9ff5f00385c0977004.zip kernel_samsung_aries-6ef9b297f6e8850da3be9c9ff5f00385c0977004.tar.gz kernel_samsung_aries-6ef9b297f6e8850da3be9c9ff5f00385c0977004.tar.bz2 |
checkpatch: types: unary -- goto introduces unary context
When we see a goto we enter unary context. For example:
goto *h;
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 94250d1..b2b0648 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -780,7 +780,7 @@ sub annotate_values { $av_pending = 'N'; $type = 'N'; - } elsif ($cur =~/^(return|case|else)/o) { + } elsif ($cur =~/^(return|case|else|goto)/o) { print "KEYWORD($1)\n" if ($dbg_values > 1); $type = 'N'; |