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>
This commit is contained in:
parent
e01886ada2
commit
c81769fdc8
1 changed files with 1 additions and 1 deletions
|
@ -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/)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue