forked from Minki/linux
checkpatch: ensure cast type is unique in the context parser
Ensure the cast type is unique in the context parser, we do not want them to detect as a comma ','. Signed-off-by: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c81769fdc8
commit
addcdcea99
@ -1032,7 +1032,7 @@ sub annotate_values {
|
||||
} elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') {
|
||||
print "CAST($1)\n" if ($dbg_values > 1);
|
||||
push(@av_paren_type, $type);
|
||||
$type = 'C';
|
||||
$type = 'c';
|
||||
|
||||
} elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {
|
||||
print "DECLARE($1)\n" if ($dbg_values > 1);
|
||||
|
Loading…
Reference in New Issue
Block a user