aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 00:28:59 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:25 -0400
commit6ef9b297f6e8850da3be9c9ff5f00385c0977004 (patch)
tree427f87ff219ee166bbb031359c6f97fcaf386273 /scripts
parentbeae6332493a40116dba24928154621f2e88b9a9 (diff)
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 {
780 $av_pending = 'N'; 780 $av_pending = 'N';
781 $type = 'N'; 781 $type = 'N';
782 782
783 } elsif ($cur =~/^(return|case|else)/o) { 783 } elsif ($cur =~/^(return|case|else|goto)/o) {
784 print "KEYWORD($1)\n" if ($dbg_values > 1); 784 print "KEYWORD($1)\n" if ($dbg_values > 1);
785 $type = 'N'; 785 $type = 'N';
786 786