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

From: Linus Walleij
Date: Tue Sep 13 2016 - 07:40:12 EST


On Mon, Sep 12, 2016 at 8:08 PM, Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Excellent deep semantics patch!

Yours,
Linus Walleij