summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-10-14 02:51:53 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 04:18:15 +0400
commitd2207ccbc59900311c88bb9150b24253cd4ddd49 (patch)
tree0ee0a14cf6fd871b4e8db74d827aff8587675128 /scripts
parentf17dba4fc0496eb0daf018074fccebdc85993c75 (diff)
downloadlinux-d2207ccbc59900311c88bb9150b24253cd4ddd49.tar.xz
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. Signed-off-by: Joe Perches <joe@perches.com> Reported-by: Greg KH <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9846ddeafdf0..0c520f7bf095 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2431,7 +2431,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/) {}
}