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

Eric Anholt eric at anholt.net
Wed Sep 14 09:44:51 UTC 2016


Masahiro Yamada <yamada.masahiro at socionext.com> 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 at socionext.com>

That's a nice little cleanup.  Applied to -next.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160914/a566c40c/attachment.sig>


More information about the dri-devel mailing list