summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 06:28:59 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 19:47:25 +0200
commit6ef9b297f6e8850da3be9c9ff5f00385c0977004 (patch)
tree427f87ff219ee166bbb031359c6f97fcaf386273 /scripts
parentcheckpatch: comment detection: ignore macro continuation when detecting assoc... (diff)
downloadlinux-6ef9b297f6e8850da3be9c9ff5f00385c0977004.tar.xz
linux-6ef9b297f6e8850da3be9c9ff5f00385c0977004.zip
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-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 94250d1a3a47..b2b0648ee14a 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';