diff options
author | Nicolas Palix <npalix@diku.dk> | 2010-08-24 17:39:03 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-31 11:37:53 +0200 |
commit | 5c34050188f5e3db7f8137d819ecbb7d9327dd93 (patch) | |
tree | 132bb860a3785e43ed14ac6c5a3d68027bf21c35 /net/atm | |
parent | afc48a82fafe55dbeeaf7c0d83d29cf279cb1c70 (diff) | |
download | op-kernel-dev-5c34050188f5e3db7f8137d819ecbb7d9327dd93.zip op-kernel-dev-5c34050188f5e3db7f8137d819ecbb7d9327dd93.tar.gz |
Coccinelle: Add iterators/list_entry_update.cocci
list_for_each_entry uses its first argument to get from one element of
the list to the next, so it is usually not a good idea to reassign it.
The first rule finds such a reassignment and the second rule checks
that there is a path from the reassignment back to the top of the loop.
Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions