diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b20ca55cddd3aaa07488323e66161403a2f55423..3a7600d1278313c37d7bc0bdbe8a9d9e76b205a5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3229,7 +3229,7 @@ sub process { } # check for unnecessary blank lines around braces - if (($line =~ /^..*}\s*$/ && $prevline =~ /^.\s*$/)) { + if (($line =~ /^.\s*}\s*$/ && $prevline =~ /^.\s*$/)) { CHK("BRACES", "Blank lines aren't necessary before a close brace '}'\n" . $hereprev); }