Browse Source

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>
Owain G. Ainsworth 15 years ago
parent
commit
5d9391628e
1 changed files with 0 additions and 5 deletions
  1. 0 5
      drivers/gpu/drm/i915/i915_gem.c

+ 0 - 5
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;
 			}
 		}