diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index dd11bbe01338ba810cd873f9f5c77b593712100c..2039acdf51222b3961b06291d6a02f4a8105a240 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -558,6 +558,9 @@ sub ctx_statement_block { $type = ($level != 0)? '{' : ''; if ($level == 0) { + if (substr($blk, $off + 1, 1) eq ';') { + $off++; + } last; } }