Skip to content

Commit addcdce

Browse files
Andy Whitcrofttorvalds
authored andcommitted
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>
1 parent c81769f commit addcdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ sub annotate_values {
10321032
} elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') {
10331033
print "CAST($1)\n" if ($dbg_values > 1);
10341034
push(@av_paren_type, $type);
1035-
$type = 'C';
1035+
$type = 'c';
10361036

10371037
} elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {
10381038
print "DECLARE($1)\n" if ($dbg_values > 1);

0 commit comments

Comments
 (0)