drm: Simplify drm_mm_clean()

Since commit ea7b1dd448 ("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
This commit is contained in:
Chris Wilson 2016-12-22 08:36:27 +00:00 • committed by Daniel Vetter
commit ac9bb7b7d3
2 changed files with 14 additions and 19 deletions