]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: mtu3: cleanup with list_first_entry_or_null()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 20 May 2017 17:05:31 +0000 (02:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:13 +0000 (14:30 +0200)
commit9b4632ef3ff2097495e3724e7c4c1a307cbcfce4
tree70871f32f8a0f06c918b5fdf33938138c81703e7
parent4642d34a439f80e16af0d56ed6258a33abae257a
usb: mtu3: cleanup with list_first_entry_or_null()

The combo of list_empty() and list_first_entry() can be replaced with
list_first_entry_or_null().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3.h