Skip to content
Permalink
Browse files
drm/i915/request: Remove unused variables
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>
  • Loading branch information
yong yiran authored and intel-lab-lkp committed Nov 21, 2021
1 parent 5191249 commit 117f34e1836e312bdea3b7c886d829e30f55a094
Showing 1 changed file with 0 additions and 3 deletions.
@@ -2084,7 +2084,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
@@ -2116,8 +2115,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),

0 comments on commit 117f34e

Please sign in to comment.