Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1482390
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] dmaengine: cleanup with list_first_entry_or_null() |
| Date | 2016-09-13 13:50 +0200 |
| Message-ID | <sgUnU-1gb-15@gated-at.bofh.it> (permalink) |
| References | <sgDQ5-6NR-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 12, 2016 at 8:08 PM, Masahiro Yamada <yamada.masahiro@socionext.com> wrote: > 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> Acked-by: Linus Walleij <linus.walleij@linaro.org> Excellent deep semantics patch! Yours, Linus Walleij
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] dmaengine: cleanup with list_first_entry_or_null() Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-09-12 20:10 +0200 Re: [PATCH] dmaengine: cleanup with list_first_entry_or_null() Linus Walleij <linus.walleij@linaro.org> - 2016-09-13 13:50 +0200 Re: [PATCH] dmaengine: cleanup with list_first_entry_or_null() Vinod Koul <vinod.koul@intel.com> - 2016-09-14 15:40 +0200
csiph-web