This "ret" declaration shadows an existing "ret" variable at the top of
the function.  Delete it.

Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
---
 drivers/gpu/drm/i915/i915_vma.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c
index 0026e85a0a0d..b66591d6e436 100644
--- a/drivers/gpu/drm/i915/i915_vma.c
+++ b/drivers/gpu/drm/i915/i915_vma.c
@@ -505,8 +505,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);
-- 
2.20.1

Reply via email to