aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 93f8507b7ac2..3e0b3f4d3420 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2118,8 +2118,10 @@ sub process {
2118 if (WARN("SPACE_BEFORE_TAB", 2118 if (WARN("SPACE_BEFORE_TAB",
2119 "please, no space before tabs\n" . $herevet) && 2119 "please, no space before tabs\n" . $herevet) &&
2120 $fix) { 2120 $fix) {
2121 $fixed[$linenr - 1] =~ 2121 while ($fixed[$linenr - 1] =~
2122 s/(^\+.*) +\t/$1\t/; 2122 s/(^\+.*) {8,8}+\t/$1\t\t/) {}
2123 while ($fixed[$linenr - 1] =~
2124 s/(^\+.*) +\t/$1\t/) {}
2123 } 2125 }
2124 } 2126 }
2125 2127