drm/vc4: cleanup with list_first_entry_or_null()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 12 Sep 2016 18:35:20 +0000 (03:35 +0900)
committerEric Anholt <eric@anholt.net>
Thu, 6 Oct 2016 18:53:35 +0000 (11:53 -0700)
commit57b9f569447c4ab7b2a7e34a13e468311db4cd64
treee6719af0a19a7958327ec1f25df79c8bfee87116
parentc2cbc38b9715bd8318062e600668fc30e5a3fbfa
drm/vc4: cleanup with list_first_entry_or_null()

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>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_drv.h