From af1bcde13a89d1a3e30c3a244a134d7933f040b9 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 7 Dec 2014 17:10:20 +0100 Subject: [PATCH] checkpatch: fix bug in regular expression Recent version of perl seem to report incorrect stuff in regular expression and this seems to be fixed in the kernel reference file, so this patch brings the fix to our (older) version so we won't get that spurious message when running the script. Signed-off-by: Christophe CURIS --- checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkpatch.pl b/checkpatch.pl index edbfa6b1..86155bdb 100755 --- a/checkpatch.pl +++ b/checkpatch.pl @@ -1911,7 +1911,7 @@ sub process { "please, no space before tabs\n" . $herevet) && $fix) { while ($fixed[$linenr - 1] =~ - s/(^\+.*) {8,8}+\t/$1\t\t/) {} + s/(^\+.*) {8,8}\t/$1\t\t/) {} while ($fixed[$linenr - 1] =~ s/(^\+.*) +\t/$1\t/) {} } -- 2.11.4.GIT