devtools: fix check of variable declaration inside for
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Jul 2020 08:00:22 +0000 (10:00 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 6 Jul 2020 08:55:19 +0000 (10:55 +0200)
commit4c4f83944683eca973d5fc5df76cd6199a090e5f
treeacce81742883e51dd8706edc43991772fc56f061
parent8d4a222e12f8ce99714fad5011d76bd6a38c36e3
devtools: fix check of variable declaration inside for

An expression with a space is split by the awk script resulting in
false positive for any patch matching any of the two part of the
expression.
Fix this by using [[:space:]].

Fixes: 43e73483a4b8 ("devtools: forbid variable declaration inside for")

Signed-off-by: David Marchand <david.marchand@redhat.com>
devtools/checkpatches.sh