diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f3fd339..48ad493 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2264,7 +2264,7 @@ ## } #need space before brace following if, while, etc - if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\){/) || + if (($line =~ /\(.*\)\{/ && $line !~ /\($Type\)\{/) || $line =~ /do\{/) { ERROR("space required before the open brace '{'\n" . $herecurr); }