diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c index d1d873f23338..c6e61564bb5e 100644 --- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c +++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c @@ -1188,7 +1188,7 @@ __igt_ctx_sseu(struct drm_i915_private *i915, { struct drm_i915_gem_object *obj; int inst = 0; - int ret; + int ret = 0; if (INTEL_GEN(i915) < 9 || !RUNTIME_INFO(i915)->sseu.has_slice_pg) return 0;