summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-09-23 12:41:02 +0200
committerTom Rini <trini@ti.com>2014-09-25 09:31:24 -0400
commite3a4facdfc07179ebe017a07b8de6224a935a9f3 (patch)
tree3a00366cde30ecf8d6d61ee97b7b2d79b47de1ea /scripts
parentf1ef2b62339526df3b921bcfefd174ce76d4c624 (diff)
downloadblackbird-obmc-uboot-e3a4facdfc07179ebe017a07b8de6224a935a9f3.tar.gz
blackbird-obmc-uboot-e3a4facdfc07179ebe017a07b8de6224a935a9f3.zip
checkpatch: remove unnecessary + after {8,8}
Pick the following commit from Linux kernel: commit 66cb4ee0e52ca721f609fd5eec16187189ae5fda Author: Joe Perches <joe@perches.com> 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 <marex@denx.de> Cc: Tom Rini <trini@ti.com>
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 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/) {}
}
OpenPOWER on IntegriCloud