From: Nicolas Palix Date: Tue, 24 Aug 2010 15:39:02 +0000 (+0200) Subject: Coccinelle: Add iterators/itnull.cocci X-Git-Tag: v2.6.37-rc1~50^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afc48a82fafe55dbeeaf7c0d83d29cf279cb1c70;p=pandora-kernel.git Coccinelle: Add iterators/itnull.cocci Many iterators have the property that the first argument is always bound to a real list element, never NULL. False positives arise for some iterators that do not have this property, or in cases when the loop cursor is reassigned. The latter should only happen when the matched code is on the way to a loop exit (break, goto, or return). Signed-off-by: Nicolas Palix Signed-off-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed