From 105b4089c1890636eec2f765c73aff6794b1ab4e Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 7 Jul 2022 23:28:58 +0000 Subject: [PATCH] drm/i915/gem: add missing else From katrinzhou a13ea254268c5538f4c2f1a1a344ad07cd7b87d3 in linux 5.15.y/5.15.53 9efdd519d001ee3e761f6ff80d5eb123387421c1 in mainline linux --- sys/dev/pci/drm/i915/gem/i915_gem_context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_context.c b/sys/dev/pci/drm/i915/gem/i915_gem_context.c index dc4398c630c..3e770a4f5fb 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_context.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_context.c @@ -728,8 +728,9 @@ static int set_proto_ctx_param(struct drm_i915_file_private *fpriv, case I915_CONTEXT_PARAM_PERSISTENCE: if (args->size) ret = -EINVAL; - ret = proto_context_set_persistence(fpriv->dev_priv, pc, - args->value); + else + ret = proto_context_set_persistence(fpriv->dev_priv, pc, + args->value); break; case I915_CONTEXT_PARAM_NO_ZEROMAP: -- 2.20.1