lkml.org 
[lkml]   [2016]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] dmaengine: cleanup with list_first_entry_or_null()
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

\
 
 \ /
  Last update: 2016-09-17 09:59    [W:0.194 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site