forked from Minki/linux
drm/i915/gem: add missing else
Add missing else in set_proto_ctx_param() to fix coverity issue.
Addresses-Coverity: ("Unused value")
Fixes: d4433c7600
("drm/i915/gem: Use the proto-context to handle create parameters (v5)")
Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
[tursulin: fixup alignment]
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220621124926.615884-1-tvrtko.ursulin@linux.intel.com
This commit is contained in:
parent
14d6a086f6
commit
7482a65664
@ -933,6 +933,7 @@ static int set_proto_ctx_param(struct drm_i915_file_private *fpriv,
|
|||||||
case I915_CONTEXT_PARAM_PERSISTENCE:
|
case I915_CONTEXT_PARAM_PERSISTENCE:
|
||||||
if (args->size)
|
if (args->size)
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
else
|
||||||
ret = proto_context_set_persistence(fpriv->dev_priv, pc,
|
ret = proto_context_set_persistence(fpriv->dev_priv, pc,
|
||||||
args->value);
|
args->value);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user