Commit c36846f3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rodrigo Vivi

drm/i915: delete shadow "ret" variable

This "ret" declaration shadows an existing "ret" variable at the top of
the function.  Delete it.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127085115.GD25644@kili
Fixes: f6c466b8 ("drm/i915: Add support for moving fence waiting")
parent b229712b
...@@ -504,8 +504,6 @@ int i915_vma_bind(struct i915_vma *vma, ...@@ -504,8 +504,6 @@ int i915_vma_bind(struct i915_vma *vma,
work->pinned = i915_gem_object_get(vma->obj); work->pinned = i915_gem_object_get(vma->obj);
} else { } else {
if (vma->obj) { if (vma->obj) {
int ret;
ret = i915_gem_object_wait_moving_fence(vma->obj, true); ret = i915_gem_object_wait_moving_fence(vma->obj, true);
if (ret) { if (ret) {
i915_vma_resource_free(vma->resource); i915_vma_resource_free(vma->resource);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment