Commit 5d939162 authored by Owain G. Ainsworth's avatar Owain G. Ainsworth Committed by Eric Anholt

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: default avatarOwain G. Ainsworth <oga@openbsd.org>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent f05dd2f0
...@@ -2227,11 +2227,6 @@ i915_gem_evict_something(struct drm_device *dev, int min_size) ...@@ -2227,11 +2227,6 @@ i915_gem_evict_something(struct drm_device *dev, int min_size)
seqno = i915_add_request(dev, NULL, obj->write_domain); seqno = i915_add_request(dev, NULL, obj->write_domain);
if (seqno == 0) if (seqno == 0)
return -ENOMEM; return -ENOMEM;
ret = i915_wait_request(dev, seqno);
if (ret)
return ret;
continue; continue;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment