diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c479bdefc779..54dfa2b543dd 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2142,9 +2142,10 @@ sub process { | |||
2142 | $dstat =~ s/\s*$//s; | 2142 | $dstat =~ s/\s*$//s; |
2143 | 2143 | ||
2144 | # Flatten any parentheses and braces | 2144 | # Flatten any parentheses and braces |
2145 | while ($dstat =~ s/\([^\(\)]*\)/1/) { | 2145 | while ($dstat =~ s/\([^\(\)]*\)/1/ || |
2146 | } | 2146 | $dstat =~ s/\{[^\{\}]*\}/1/ || |
2147 | while ($dstat =~ s/\{[^\{\}]*\}/1/) { | 2147 | $dstat =~ s/\[[^\{\}]*\]/1/) |
2148 | { | ||
2148 | } | 2149 | } |
2149 | 2150 | ||
2150 | my $exceptions = qr{ | 2151 | my $exceptions = qr{ |