mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
beae633249
commit
6ef9b297f6
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user