diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c index 468f0992db39b071c66fde525436a4948e8a4027..320c6879fd831f9826a6c0052a424710a407e4a6 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c @@ -591,7 +591,7 @@ static int pot_hole(struct drm_i915_private *i915, struct i915_vma *vma; unsigned long flags; unsigned int pot; - int err; + int err = 0; flags = PIN_OFFSET_FIXED | PIN_USER; if (i915_is_ggtt(vm))