Coccinelle: Add iterators/fen.cocci
authorNicolas Palix <npalix@diku.dk>
Tue, 24 Aug 2010 15:39:01 +0000 (17:39 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 31 Aug 2010 09:37:53 +0000 (11:37 +0200)
commit4045159253a49a56d117148d67bc86a72762a0d3
tree55c9a56609b0354e86a5e23d38f20dcf82ce2754
parent54c056280e0dfcd39b33c4ed75116ce98697511c
Coccinelle: Add iterators/fen.cocci

for_each_node iterators only exit normally when the loop cursor is
NULL, so there is no point to call of_node_put on the final value.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/iterators/fen.cocci [new file with mode: 0644]