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:
committed by
Linus Torvalds
parent
e01886ada2
commit
c81769fdc8
@@ -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/)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user