From: Owain G. Ainsworth Date: Wed, 3 Mar 2010 05:34:29 +0000 (+0000) Subject: drm/i915: remove an unnecessary wait_request() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5d9391628e8eb3b0830697697a95bfd0c3c35b9e;p=linux-beck.git drm/i915: remove an unnecessary wait_request() The continue just after this call with loop around and wait for the request just added just fine. This leads to slightly more compact code. Signed-Off-by: Owain G. Ainsworth Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index fba37e9f775d..e52a277814c0 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -2227,11 +2227,6 @@ i915_gem_evict_something(struct drm_device *dev, int min_size) seqno = i915_add_request(dev, NULL, obj->write_domain); if (seqno == 0) return -ENOMEM; - - ret = i915_wait_request(dev, seqno); - if (ret) - return ret; - continue; } }