scripts: coccinelle: check for redeclaration
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 28 Dec 2018 14:49:01 +0000 (15:49 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 6 Jan 2019 00:46:51 +0000 (09:46 +0900)
commitdc7884f34a5da79c61a9443c465a99512dc7bb15
tree7383b3dc08116199a253c6f5bfda4a83ebd69d7f
parenta5003571e627789d8104ebdbe3ae24be41ea071a
scripts: coccinelle: check for redeclaration

Avoid reporting on the use of an iterator index variable when
the variable is redeclared.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/iterators/use_after_iter.cocci