From 1f105604737215022e2ac01ec8bbbf5fc0bc3dd5 Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Mon, 30 Jul 2012 14:41:16 -0700 Subject: [PATCH] --- yaml --- r: 319936 b: refs/heads/master c: b34a26f3158cca932b6f1427b97fe12c7838ee68 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c5699b7c849b..a29e5f449eeb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4ed940d4c34c21a1a356969a923f2815d608e0bf +refs/heads/master: b34a26f3158cca932b6f1427b97fe12c7838ee68 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index e5bd60ff48e3..630319acb826 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1848,8 +1848,8 @@ sub process { my $pos = pos_last_openparen($rest); if ($pos >= 0) { - $line =~ /^\+([ \t]*)/; - my $newindent = $1; + $line =~ /^(\+| )([ \t]*)/; + my $newindent = $2; my $goodtabindent = $oldindent . "\t" x ($pos / 8) .