]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
coccinelle: use exists to improve efficiency
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 12 Nov 2017 15:02:18 +0000 (16:02 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Nov 2017 14:21:16 +0000 (23:21 +0900)
commit6851ba1a1b22ba2e0800002d531bf04ced22ec18
tree4c58659a3f592e706b2ba631c5d7ecb39e577799
parentbace64800bae72c563bab66f23c7221fddaae142
coccinelle: use exists to improve efficiency

This just needs to find any reassignment of the loop iterator, and doesn't
need such a thing on all execution paths, so use exists on the first rule.

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