Re: [PATCH] usb: cleanup with list_first_entry_or_null()

2016-09-13 Thread John Youn
On 9/12/2016 10:52 PM, Felipe Balbi wrote: > > Hi Masahiro, > > Masahiro Yamada writes: >> The combo of list_empty() check and return list_first_entry() >> can be replaced with list_first_entry_or_null(). >> >> Signed-off-by: Masahiro Yamada >> --- > > Care to split this into two patches (one

Re: [PATCH] usb: cleanup with list_first_entry_or_null()

2016-09-12 Thread Felipe Balbi
Hi Masahiro, Masahiro Yamada writes: > The combo of list_empty() check and return list_first_entry() > can be replaced with list_first_entry_or_null(). > > Signed-off-by: Masahiro Yamada > --- Care to split this into two patches (one for dwc2 and one for dwc3)? thanks -- balbi signature.a

[PATCH] usb: cleanup with list_first_entry_or_null()

2016-09-12 Thread Masahiro Yamada
The combo of list_empty() check and return list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada --- drivers/usb/dwc2/gadget.c| 6 ++ drivers/usb/dwc3/gadget.h| 5 + drivers/usb/renesas_usbhs/fifo.c | 5 + 3 files changed,