[PATCH] dmaengine: cleanup with list_first_entry_or_null()
Linus Walleij
linus.walleij at linaro.org
Tue Sep 13 04:39:47 PDT 2016
On Mon, Sep 12, 2016 at 8:08 PM, Masahiro Yamada
<yamada.masahiro at 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 at socionext.com>
Acked-by: Linus Walleij <linus.walleij at linaro.org>
Excellent deep semantics patch!
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list