Re: [PATCH] drm/vc4: cleanup with list_first_entry_or_null()

From: Eric Anholt
Date: Wed Sep 14 2016 - 06:12:14 EST


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

That's a nice little cleanup. Applied to -next. Thanks!

Attachment: signature.asc
Description: PGP signature