]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
checkpatch: fix complex macros handling of square brackets
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:20 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:01:28 +0000 (17:01 +1100)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl

index 5e3f4191f9596629cb1c72eddc4f313c9aeb8691..ba7bcf34ad01e6bdf1b5f20371782c421ec7d717 100755 (executable)
@@ -2815,7 +2815,7 @@ sub process {
                        # Flatten any parentheses and braces
                        while ($dstat =~ s/\([^\(\)]*\)/1/ ||
                               $dstat =~ s/\{[^\{\}]*\}/1/ ||
-                              $dstat =~ s/\[[^\{\}]*\]/1/)
+                              $dstat =~ s/\[[^\[\]]*\]/1/)
                        {
                        }