staging: emxx_udc: use list_first_entry_or_null()
authorGeliang Tang <geliangtang@163.com>
Mon, 16 Nov 2015 13:54:46 +0000 (21:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Dec 2015 02:32:52 +0000 (18:32 -0800)
commite59ac747946693b1356d576f843ce8ac1e283927
tree1127226be49fe5f7d9ab150166fb96d1bd7eb384
parente7cfb3907d1c88cea8977fa267149cb2297fb07e
staging: emxx_udc: use list_first_entry_or_null()

Simplify the code with list_first_entry_or_null().

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c