]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Cleanup error paths through eb_lookup_vma()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Sep 2017 15:07:52 +0000 (16:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Sep 2017 19:45:04 +0000 (20:45 +0100)
commitadbcc9e36c1a63228f7398792f6d4835bcf2d9dc
treeed34dbb89a34ab4622023bbccc0bbe31a6e21ce3
parentd1c13ce020b7b7a51d417045c63fe1d0727e3d57
drm/i915: Cleanup error paths through eb_lookup_vma()

Following the simplification to a single lookup loop in commit
20414d4dd5e7 ("drm/i915: Simplify eb_lookup_vmas()") and commit
1b5dde0153b2 ("drm/i915: Replace execbuf vma ht with an idr"), we can go
one step further and reorder the error paths so that the state of the
local variable obj is always known to the compiler and doesn't need the
uninitialized_var markup to squelch a compiler warning.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170912150752.20411-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c