]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Simplify i915_gtt_color_adjust()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Dec 2016 07:46:40 +0000 (07:46 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 16 Dec 2016 15:36:41 +0000 (16:36 +0100)
commit512d49b5641b9d23b4f9ecb2b38052e3a0c7975a
tree3fc34c20feb09b4b02841928cd0d9e6609e1562d
parent6a18758e7dcbd58c094fd55671fa74c4a52c3d2f
drm/i915: Simplify i915_gtt_color_adjust()

If we remember that node_list is a circular list containing the fake
head_node, we can use a simple list_next_entry() and skip the NULL check
for the allocated check against the head_node.

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/20161216074718.32500-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c