From: Chris Wilson Date: Wed, 29 Sep 2010 20:19:54 +0000 (+0100) Subject: drm/i915: Remove redundant deletion of obj->gpu_write_list X-Git-Tag: v4.13~17069^2~28^2~14 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f394940b8d275064f080a59dac636688dae3531a;p=mirror_ubuntu-bionic-kernel.git drm/i915: Remove redundant deletion of obj->gpu_write_list 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 --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 613b0bffde0f..302beee03197 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -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,