Re: [PATCH 1/1] checkpatch: fix perl v5.20 warning: useless use of greediness modifier

2014-09-15 Thread Joe Perches
On Tue, 2014-09-16 at 00:12 +0900, Roman Pen wrote: > on my perl v5.20 I got: > Useless use of greediness modifier '+' in regex; marked by > <-- HERE in m/(^\+.*) {8,8}+ <-- HERE \t/ at ./scripts/checkpatch.pl line > 2427. > > greediness modifier '+' in construction '\s{8,8}+' does not make >

[PATCH 1/1] checkpatch: fix perl v5.20 warning: useless use of greediness modifier

2014-09-15 Thread Roman Pen
on my perl v5.20 I got: Useless use of greediness modifier '+' in regex; marked by <-- HERE in m/(^\+.*) {8,8}+ <-- HERE \t/ at ./scripts/checkpatch.pl line 2427. greediness modifier '+' in construction '\s{8,8}+' does not make any sense, because we already specify how many chars do we expect