Commit c81769fd authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Linus Torvalds

checkpatch: fix complex macros handling of square brackets

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e01886ad
...@@ -2815,7 +2815,7 @@ sub process { ...@@ -2815,7 +2815,7 @@ sub process {
# Flatten any parentheses and braces # Flatten any parentheses and braces
while ($dstat =~ s/\([^\(\)]*\)/1/ || while ($dstat =~ s/\([^\(\)]*\)/1/ ||
$dstat =~ s/\{[^\{\}]*\}/1/ || $dstat =~ s/\{[^\{\}]*\}/1/ ||
$dstat =~ s/\[[^\{\}]*\]/1/) $dstat =~ s/\[[^\[\]]*\]/1/)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment