Messages in this thread | | | Subject | Re: [PATCH 1/1] checkpatch: fix perl v5.20 warning: useless use of greediness modifier | From | Joe Perches <> | Date | Mon, 15 Sep 2014 08:19:29 -0700 |
| |
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 > any sense, because we already specify how many chars do we expect. > > Also we can avoid second ',8' and use simple '\s{8}'.
Thanks Roman, it's already fixed in -next.
http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/scripts/checkpatch.pl?id=66cb4ee0e52ca721f609fd5eec16187189ae5fda
| |