diff options
author | Owain G. Ainsworth <zerooa@googlemail.com> | 2010-03-03 00:34:29 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-17 15:59:30 -0400 |
commit | 5d9391628e8eb3b0830697697a95bfd0c3c35b9e (patch) | |
tree | e572ed3d1768214c8386036929e4dc75ca8d1b4c /drivers | |
parent | f05dd2f09cac422c423dae8f9b8e2be13df05a8f (diff) |
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 <oga@openbsd.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 5 |
1 files changed, 0 insertions, 5 deletions
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) | |||
2227 | seqno = i915_add_request(dev, NULL, obj->write_domain); | 2227 | seqno = i915_add_request(dev, NULL, obj->write_domain); |
2228 | if (seqno == 0) | 2228 | if (seqno == 0) |
2229 | return -ENOMEM; | 2229 | return -ENOMEM; |
2230 | |||
2231 | ret = i915_wait_request(dev, seqno); | ||
2232 | if (ret) | ||
2233 | return ret; | ||
2234 | |||
2235 | continue; | 2230 | continue; |
2236 | } | 2231 | } |
2237 | } | 2232 | } |