All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH linux-next] drm/i915/request: Remove unused variables
@ 2021-11-21 10:13 ` cgel.zte
  0 siblings, 0 replies; 18+ messages in thread
From: cgel.zte @ 2021-11-21 10:13 UTC (permalink / raw)
  To: jani.nikula
  Cc: airlied, intel-gfx, linux-kernel, dri-devel, yong yiran,
	Zeal Robot

From: yong yiran <yong.yiran@zte.com.cn>

The clang_analyzer complains as follows:
drivers/gpu/drm/i915/i915_request.c:2119:2 warning:
Value stored to 'x' is never read

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: yong yiran <yong.yiran@zte.com.cn>
---
 drivers/gpu/drm/i915/i915_request.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index 820a1f38b271..5e4420f461e9 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -2047,7 +2047,6 @@ void i915_request_show(struct drm_printer *m,
 {
 	const char *name = rq->fence.ops->get_timeline_name((struct dma_fence *)&rq->fence);
 	char buf[80] = "";
-	int x = 0;
 
 	/*
 	 * The prefix is used to show the queue status, for which we use
@@ -2079,8 +2078,6 @@ void i915_request_show(struct drm_printer *m,
 	 *      from the lists
 	 */
 
-	x = print_sched_attr(&rq->sched.attr, buf, x, sizeof(buf));
-
 	drm_printf(m, "%s%.*s%c %llx:%lld%s%s %s @ %dms: %s\n",
 		   prefix, indent, "                ",
 		   queue_status(rq),
-- 
2.25.1


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

end of thread, other threads:[~2021-11-22 14:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-21 10:13 [Intel-gfx] [PATCH linux-next] drm/i915/request: Remove unused variables cgel.zte
2021-11-21 10:13 ` cgel.zte
2021-11-21 10:13 ` cgel.zte
2021-11-21 12:18 ` Christophe JAILLET
2021-11-21 12:18 ` [Intel-gfx] " Christophe JAILLET
2021-11-21 12:18   ` Christophe JAILLET
2021-11-21 12:18   ` Christophe JAILLET
2021-11-22  9:09   ` [Intel-gfx] " Jani Nikula
2021-11-22  9:09     ` Jani Nikula
2021-11-22  9:09     ` Jani Nikula
2021-11-22  6:48 ` [Intel-gfx] " kernel test robot
2021-11-22  6:48   ` kernel test robot
2021-11-22  6:48   ` kernel test robot
2021-11-22  7:08 ` [Intel-gfx] " kernel test robot
2021-11-22  7:08   ` kernel test robot
2021-11-22  7:08   ` kernel test robot
2021-11-22  7:08   ` kernel test robot
2021-11-22 14:00 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork

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.