drm/i915: Fix uninitialized return from mi_set_context
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 14 Feb 2017 15:29:01 +0000 (15:29 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 14 Feb 2017 19:34:54 +0000 (19:34 +0000)
commita937eaf8242a44f402f63a8ed135026bdc2ab0e9
tree5a944c82039b4965e7643717791c8816b95b0cf5
parent73dec95e6ba37d8138bb111be5c9b8a1f3a622ae
drm/i915: Fix uninitialized return from mi_set_context

For some reason my compiler (and CI as well) failed to spot the
uninitialized ret in mi_set_context.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: 73dec95e6ba3 ("drm/i915: Emit to ringbuffer directly")
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170214152901.20361-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_gem_context.c