drm/lima/lima_sched: Remove unused and unnecessary variable 'ret'
authorLee Jones <lee.jones@linaro.org>
Fri, 13 Nov 2020 13:49:21 +0000 (13:49 +0000)
committerQiang Yu <yuq825@gmail.com>
Mon, 16 Nov 2020 00:20:10 +0000 (08:20 +0800)
Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/lima/lima_sched.c: In function ‘lima_sched_run_job’:
 drivers/gpu/drm/lima/lima_sched.c:227:20: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Cc: Qiang Yu <yuq825@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: dri-devel@lists.freedesktop.org
Cc: lima@lists.freedesktop.org
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201113134938.4004947-24-lee.jones@linaro.org
drivers/gpu/drm/lima/lima_sched.c

index a070a85..63b4c56 100644 (file)
@@ -224,7 +224,6 @@ static struct dma_fence *lima_sched_run_job(struct drm_sched_job *job)
        struct lima_sched_pipe *pipe = to_lima_pipe(job->sched);
        struct lima_device *ldev = pipe->ldev;
        struct lima_fence *fence;
-       struct dma_fence *ret;
        int i, err;
 
        /* after GPU reset */
@@ -246,7 +245,7 @@ static struct dma_fence *lima_sched_run_job(struct drm_sched_job *job)
        /* for caller usage of the fence, otherwise irq handler
         * may consume the fence before caller use it
         */
-       ret = dma_fence_get(task->fence);
+       dma_fence_get(task->fence);
 
        pipe->current_task = task;