]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Simplify drm_mm_clean()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:27 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 13:16:59 +0000 (14:16 +0100)
commitcac730521984a3e085437d71d580a67f7201023f
treee65f935a8201865a8dfea93b1997b6d4570feb19
parent5276ad6d42e7f85cb6b3d1ce9cc58cda6f057b96
drm: Simplify drm_mm_clean()

Since commit e153ee5ded7b ("drm: mm: track free areas implicitly"),
to test whether there are any nodes allocated within the range manager,
we merely have to ask whether the node_list is empty.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-25-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h