diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-16 08:46:40 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-16 16:36:41 +0100 |
commit | b44f97fd78ce252c543674c46c45e67a1b0c5d90 (patch) | |
tree | 3fc34c20feb09b4b02841928cd0d9e6609e1562d /include/drm/drm_encoder_slave.h | |
parent | drm: Constify the drm_mm API (diff) | |
download | linux-b44f97fd78ce252c543674c46c45e67a1b0c5d90.tar.xz linux-b44f97fd78ce252c543674c46c45e67a1b0c5d90.zip |
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
Diffstat (limited to 'include/drm/drm_encoder_slave.h')
0 files changed, 0 insertions, 0 deletions