diff options
author | Andy Whitcroft <apw@canonical.com> | 2012-01-10 18:10:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 19:30:51 -0500 |
commit | c81769fdc84ed7c6eb3cc5cecb194324a5e4c8ad (patch) | |
tree | bfa7973e16263c7993a54bd53e7a00f350f7d5cc /scripts | |
parent | e01886ada28741d7cb2cfb3224e9caccfbc1a2d5 (diff) |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5e3f4191f959..ba7bcf34ad01 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2815,7 +2815,7 @@ sub process { | |||
2815 | # Flatten any parentheses and braces | 2815 | # Flatten any parentheses and braces |
2816 | while ($dstat =~ s/\([^\(\)]*\)/1/ || | 2816 | while ($dstat =~ s/\([^\(\)]*\)/1/ || |
2817 | $dstat =~ s/\{[^\{\}]*\}/1/ || | 2817 | $dstat =~ s/\{[^\{\}]*\}/1/ || |
2818 | $dstat =~ s/\[[^\{\}]*\]/1/) | 2818 | $dstat =~ s/\[[^\[\]]*\]/1/) |
2819 | { | 2819 | { |
2820 | } | 2820 | } |
2821 | 2821 | ||