Skip to content

Commit

Permalink
drm/i915: Remove redundant deletion of obj->gpu_write_list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Wilson committed Sep 30, 2010
1 parent 5cdf588 commit f394940
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f394940

Please sign in to comment.