From 495b9c3339eeffd6d68bd6dfe8712f5cae36b048 Mon Sep 17 00:00:00 2001 From: Patrick Pannuto Date: Mon, 9 Aug 2010 17:21:03 -0700 Subject: [PATCH] --- yaml --- r: 207341 b: refs/heads/master c: b998e001e6ce6540ea04a264debc50ae44d2db7a h: refs/heads/master i: 207339: 2ce3ec63461f4c483c8378904ae7f63331311a4f v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a671ac327461..03c456c7c079 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 09ef87255da0e005dd0ab39ca25714208cf29cb3 +refs/heads/master: b998e001e6ce6540ea04a264debc50ae44d2db7a diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index dd11bbe01338..2039acdf5122 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/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; } }