From: Joe Perches Date: Tue, 23 Sep 2014 10:41:02 +0000 (+0200) Subject: checkpatch: remove unnecessary + after {8,8} X-Git-Tag: v2014.10-rc3~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e3a4facdfc07179ebe017a07b8de6224a935a9f3;p=oweals%2Fu-boot.git checkpatch: remove unnecessary + after {8,8} Pick the following commit from Linux kernel: commit 66cb4ee0e52ca721f609fd5eec16187189ae5fda Author: Joe Perches Date: Wed Sep 10 09:40:47 2014 +1000 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: Marek Vasut Cc: Tom Rini --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 3fed5e4694..74db2e24fc 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2148,7 +2148,7 @@ sub process { "please, no space before tabs\n" . $herevet) && $fix) { while ($fixed[$linenr - 1] =~ - s/(^\+.*) {8,8}+\t/$1\t\t/) {} + s/(^\+.*) {8,8}\t/$1\t\t/) {} while ($fixed[$linenr - 1] =~ s/(^\+.*) +\t/$1\t/) {} }