From: Joe Perches Date: Mon, 13 Oct 2014 22:51:53 +0000 (-0700) Subject: checkpatch: remove unnecessary + after {8,8} X-Git-Tag: v3.17.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c40284ad436633a87c7de378c1d0108a6afde027;p=thirdparty%2Fkernel%2Fstable.git checkpatch: remove unnecessary + after {8,8} commit d2207ccbc59900311c88bb9150b24253cd4ddd49 upstream. 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. Signed-off-by: Joe Perches Reported-by: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4d08b398411fd..cab1691b5ad6c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2424,7 +2424,7 @@ sub process { "please, no space before tabs\n" . $herevet) && $fix) { while ($fixed[$fixlinenr] =~ - s/(^\+.*) {8,8}+\t/$1\t\t/) {} + s/(^\+.*) {8,8}\t/$1\t\t/) {} while ($fixed[$fixlinenr] =~ s/(^\+.*) +\t/$1\t/) {} }