drm/i915: Remove the double-list iteration from bound_any()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Sep 2013 10:27:37 +0000 (11:27 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Sep 2013 14:14:06 +0000 (16:14 +0200)
commit5a1d5eb020a27759f5cab4d72222d1752bb29453
tree1c1eaa07448fd6490b8154e2609fa522b54c58c2
parent092467327c45edbfce6c2bb71ee842bec16b9a60
drm/i915: Remove the double-list iteration from bound_any()

The purpose of the function is to find out whether the object is still
bound in any address space. This can be easily checked by looking at the
vma currently associated with the object, rather than asking if any of
the global address spaces have an active vma on the object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c