[Intel-gfx] [PATCH 02/34] drm/i915: Simplify i915_gtt_color_adjust()
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Tue Dec 13 09:32:54 UTC 2016
On ma, 2016-12-12 at 11:53 +0000, Chris Wilson wrote:
> 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 at chris-wilson.co.uk>
I'm not sure if the code should be sprinkled full of comments about the
oddly behaving head_node, I can see somebody forgetting it in the
future, too.
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regars, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list