Skip to content

Commit c81769f

Browse files
Andy Whitcrofttorvalds
authored andcommitted
checkpatch: fix complex macros handling of square brackets
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 e01886a commit c81769f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ sub process {
28152815
# Flatten any parentheses and braces
28162816
while ($dstat =~ s/\([^\(\)]*\)/1/ ||
28172817
$dstat =~ s/\{[^\{\}]*\}/1/ ||
2818-
$dstat =~ s/\[[^\{\}]*\]/1/)
2818+
$dstat =~ s/\[[^\[\]]*\]/1/)
28192819
{
28202820
}
28212821

0 commit comments

Comments
 (0)