All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: delete shadow "ret" variable
@ 2022-01-27  8:51 ` Dan Carpenter
  0 siblings, 0 replies; 12+ messages in thread
From: Dan Carpenter @ 2022-01-27  8:51 UTC (permalink / raw)
  To: Jani Nikula, Thomas Hellström
  Cc: Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin, David Airlie,
	Daniel Vetter, intel-gfx, kernel-janitors

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>
---
 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


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-28 13:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27  8:51 [PATCH] drm/i915: delete shadow "ret" variable Dan Carpenter
2022-01-27  8:51 ` [Intel-gfx] " Dan Carpenter
2022-01-27 11:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2022-01-27 14:21 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2022-01-27 22:26 ` [Intel-gfx] [PATCH] " Rodrigo Vivi
2022-01-27 22:26   ` Rodrigo Vivi
2022-01-28  6:20   ` Thomas Hellström
2022-01-28  6:20     ` Thomas Hellström
2022-01-28  6:36     ` Dan Carpenter
2022-01-28  6:36       ` Dan Carpenter
2022-01-28 13:50       ` Vivi, Rodrigo
2022-01-28 13:50         ` Vivi, Rodrigo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.