From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:10 +0000 (-0800) Subject: checkpatch: fix complex macros handling of square brackets X-Git-Url: https://git.openfabrics.org/?p=~shefty%2Frdma-dev.git;a=commitdiff_plain;h=c81769fdc84ed7c6eb3cc5cecb194324a5e4c8ad;hp=e01886ada28741d7cb2cfb3224e9caccfbc1a2d5 checkpatch: fix complex macros handling of square brackets Signed-off-by: Andy Whitcroft Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 5e3f4191f95..ba7bcf34ad0 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/) { }