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