diff --git a/[refs] b/[refs] index 3f87c7f01444..10575a060085 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f9a0b3d17a01fe1ba24ce1e9c18666a52052e011 +refs/heads/master: 63f17f8973ccdb8260e59ce5b1b4e2b2ee0401f0 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 1d7924ad3a34..696196e194f5 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -2016,7 +2016,11 @@ sub process { # Flatten any parentheses $value =~ s/\)\(/\) \(/g; - while ($value !~ /(?:$Ident|-?$Constant)\s*$Compare\s*(?:$Ident|-?$Constant)/ && $value =~ s/\([^\(\)]*\)/1/) { + while ($value =~ s/\[[^\{\}]*\]/1/ || + $value !~ /(?:$Ident|-?$Constant)\s* + $Compare\s* + (?:$Ident|-?$Constant)/x && + $value =~ s/\([^\(\)]*\)/1/) { } if ($value =~ /^(?:$Ident|-?$Constant)$/) {