usb: gadget: rndis: fix itnull.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Mon, 25 Jan 2016 15:21:54 +0000 (16:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:36:04 +0000 (13:36 -0800)
commit1c17a353c5a8346b1ce128c60ffb862d156f7e7e
treed48dbfd596cd45f4e6baa5a2c6688014efbe8403
parentb4a90d04ac79349799f65dfd7fa30b2aac6b2a4d
usb: gadget: rndis: fix itnull.cocci warnings

The index variable of list_for_each_entry_safe is an offset from a list
pointer, and thus should not be NULL.

Generated by: scripts/coccinelle/iterators/itnull.cocci

CC: Geliang Tang <geliangtang@163.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/rndis.c