History

checkpatch: remove unnecessary + after {8,8}

There's a useless "+" use that needs to be removed as perl 5.20 emits a "Useless use of greediness modifier '+'" message each time it's hit.

Joe Perches committed 12 years ago

Commit d2207cc1 parent f17dba41 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2431,7 +2431,7 @@ sub process { · 2430 unmodified lines
2431 "please, no space before tabs\n" . $herevet) &&2431 "please, no space before tabs\n" . $herevet) &&
2432 $fix) {2432 $fix) {
2433 while ($fixed[$fixlinenr] =~2433 while ($fixed[$fixlinenr] =~
2434 s/(^\+.*) {8,8}+\t/$1\t\t/) {}2434 s/(^\+.*) {8,8}\t/$1\t\t/) {}
2435 while ($fixed[$fixlinenr] =~2435 while ($fixed[$fixlinenr] =~
2436 s/(^\+.*) +\t/$1\t/) {}2436 s/(^\+.*) +\t/$1\t/) {}
2437 }2437 }