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

2016-09-14 Thread Eric Anholt
Masahiro Yamada 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 That's a nice little cleanup. Applied to -next. Thanks! -- next part -- A non-text attachment w

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

2016-09-13 Thread Masahiro Yamada
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 --- drivers/gpu/drm/vc4/vc4_drv.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers