mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220127085115.GD25644@kili
Fixes: f6c466b84c ("drm/i915: Add support for moving fence waiting")
This commit is contained in:
parent
b229712b26
commit
c36846f391
|
|
@ -504,8 +504,6 @@ int i915_vma_bind(struct i915_vma *vma,
|
|||
work->pinned = i915_gem_object_get(vma->obj);
|
||||
} else {
|
||||
if (vma->obj) {
|
||||
int ret;
|
||||
|
||||
ret = i915_gem_object_wait_moving_fence(vma->obj, true);
|
||||
if (ret) {
|
||||
i915_vma_resource_free(vma->resource);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user