From: Nicolas Palix Date: Tue, 24 Aug 2010 15:39:03 +0000 (+0200) Subject: Coccinelle: Add iterators/list_entry_update.cocci X-Git-Tag: v2.6.37-rc1~50^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c34050188f5e3db7f8137d819ecbb7d9327dd93;p=pandora-kernel.git 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 Signed-off-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed