From: jsg Date: Thu, 7 Jul 2022 23:28:58 +0000 (+0000) Subject: drm/i915/gem: add missing else X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=105b4089c1890636eec2f765c73aff6794b1ab4e;p=openbsd drm/i915/gem: add missing else From katrinzhou a13ea254268c5538f4c2f1a1a344ad07cd7b87d3 in linux 5.15.y/5.15.53 9efdd519d001ee3e761f6ff80d5eb123387421c1 in mainline linux --- 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: