Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1482152

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

From Felipe Balbi <balbi@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: cleanup with list_first_entry_or_null()
Date 2016-09-13 08:00 +0200
Message-ID <sgOVb-5ZH-5@gated-at.bofh.it> (permalink)
References <sgDwL-6qC-57@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Masahiro,

Masahiro Yamada <yamada.masahiro@socionext.com> 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 <yamada.masahiro@socionext.com>
> ---

Care to split this into two patches (one for dwc2 and one for dwc3)?

thanks

-- 
balbi

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] usb: cleanup with list_first_entry_or_null() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-09-12 19:50 +0200
  Re: [PATCH] usb: cleanup with list_first_entry_or_null() Felipe Balbi <balbi@kernel.org> - 2016-09-13 08:00 +0200
    Re: [PATCH] usb: cleanup with list_first_entry_or_null() John Youn <John.Youn@synopsys.com> - 2016-09-13 21:20 +0200

csiph-web