]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8427ca4e5f51adeda6ff15c8862bfae268c0222a
treee6719af0a19a7958327ec1f25df79c8bfee87116
parentb76f41dde38eee1519b5d5156bca2af9c21f2989
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