drm/i915: Remove redundant deletion of obj->gpu_write_list
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Sep 2010 20:19:54 +0000 (21:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Sep 2010 08:30:51 +0000 (09:30 +0100)
At that point as the object is no longer in any GPU write domain it must
not be on the list, so the list_del() is redundant.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c

index 613b0bffde0f4fb3a417079ee576cda3bd5d7776..302beee0319765511911f939c283fd2b7195ada9 100644 (file)
@@ -3857,8 +3857,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
                if (obj->write_domain)
                        list_move_tail(&obj_priv->gpu_write_list,
                                       &dev_priv->mm.gpu_write_list);
-               else
-                       list_del_init(&obj_priv->gpu_write_list);
 
                trace_i915_gem_object_change_domain(obj,
                                                    obj->read_domains,