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

2017-05-25 Thread Greg Kroah-Hartman
On Mon, May 22, 2017 at 09:21:33AM +0800, Chunfeng Yun wrote: > Hi, > On Sat, 2017-05-20 at 21:19 +0200, Greg Kroah-Hartman wrote: > > On Sun, May 21, 2017 at 02:05:31AM +0900, Masahiro Yamada wrote: > > > The combo of list_empty() and list_first_entry() can be replaced with > > > list_first_entry_

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

2017-05-21 Thread Chunfeng Yun
Hi, On Sat, 2017-05-20 at 21:19 +0200, Greg Kroah-Hartman wrote: > On Sun, May 21, 2017 at 02:05:31AM +0900, Masahiro Yamada wrote: > > The combo of list_empty() and list_first_entry() can be replaced with > > list_first_entry_or_null(). > > > > Signed-off-by: Masahiro Yamada > > --- > > > > dr

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

2017-05-20 Thread Greg Kroah-Hartman
On Sun, May 21, 2017 at 02:05:31AM +0900, Masahiro Yamada wrote: > The combo of list_empty() and list_first_entry() can be replaced with > list_first_entry_or_null(). > > Signed-off-by: Masahiro Yamada > --- > > drivers/usb/mtu3/mtu3.h | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletion

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

2017-05-20 Thread Masahiro Yamada
The combo of list_empty() and list_first_entry() can be replaced with list_first_entry_or_null(). Signed-off-by: Masahiro Yamada --- drivers/usb/mtu3/mtu3.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/mtu3/mtu3.h b/drivers/usb/mtu3/mtu3.h index aa6fd6