X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;fp=scripts%2Fcheckpatch.pl;h=3e0b3f4d34203143d69b9c3c2ccf24dea9ac7278;hb=c76f4cb3d25e5dc84017d7e845072e9aef6037f4;hp=93f8507b7ac253dc93013d22f67caa87738d727a;hpb=9624b8d65cd1e9a6415a81a6588e423b1d8c2282;p=~andy%2Flinux diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 93f8507b7ac..3e0b3f4d342 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2118,8 +2118,10 @@ sub process { if (WARN("SPACE_BEFORE_TAB", "please, no space before tabs\n" . $herevet) && $fix) { - $fixed[$linenr - 1] =~ - s/(^\+.*) +\t/$1\t/; + while ($fixed[$linenr - 1] =~ + s/(^\+.*) {8,8}+\t/$1\t\t/) {} + while ($fixed[$linenr - 1] =~ + s/(^\+.*) +\t/$1\t/) {} } }