From: Andy Whitcroft Date: Thu, 8 Dec 2011 04:42:24 +0000 (+1100) Subject: checkpatch: fix complex macros handling of square brackets X-Git-Tag: next-20111214~2^2~89 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d9d00b0c36f3828828c85690a0de66a5a25fb0f9;p=karo-tx-linux.git checkpatch: fix complex macros handling of square brackets Signed-off-by: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton --- 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 { # Flatten any parentheses and braces while ($dstat =~ s/\([^\(\)]*\)/1/ || $dstat =~ s/\{[^\{\}]*\}/1/ || - $dstat =~ s/\[[^\{\}]*\]/1/) + $dstat =~ s/\[[^\[\]]*\]/1/) { }