]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: renesas_usbhs: cleanup with list_first_entry_or_null()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 18 Sep 2016 16:03:15 +0000 (01:03 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:37 +0000 (10:38 +0200)
commit31faf878bd8c7e2c078a3b75f65efe64f23b0f18
tree9c6aa1c57493a48b4c32a253e6c497dc50b546a6
parent785c91f8ae4d65efbe4d3366e30bb9bbe84b5f43
usb: renesas_usbhs: cleanup with list_first_entry_or_null()

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

Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/fifo.c