[PATCH] sdcardfs: fix itnull.cocci warnings

2016-03-23 Thread Julia Lawall
Remove NULL test, as the index variable of list_for-each_entry cannot be NULL. Generated by: scripts/coccinelle/iterators/itnull.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- derived_perm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/sdcardfs/derive

[PATCH] sdcardfs: fix itnull.cocci warnings

2016-03-23 Thread Julia Lawall
Remove NULL tests, as the index variable of list_for_each_entry cannot be NULL. Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- The code seems to have a lot of unnecessary braces as well. tree: https://android.googlesource.com/kernel/common android-4.4 head: f06e869f936e548fd3