Skip to content

Commit

Permalink
checkpatch: types: unary -- goto introduces unary context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Jul 24, 2008
1 parent beae633 commit 6ef9b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 6ef9b29

Please sign in to comment.