]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove redundant list_empty(eb->vmas) tests in execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 Aug 2014 05:29:10 +0000 (06:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 12:15:03 +0000 (14:15 +0200)
commitd96f36562de9fadee29e9049b4b8f3988f50c57b
tree3bfc8c9c235c0c48d45ebe8a360c57679a8f30a9
parent0012d790a7ab10941f506076b9b88dc712537f57
drm/i915: Remove redundant list_empty(eb->vmas) tests in execbuffer

Part of the pre-validation for an execbuffer call is that there is at
least one object in the execlist. As we bail if we fail to lookup any
object, we can be sure that after the eb_lookup_vma() there is at least
one object in the vma list and so we do not need to assert.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c