Skip to content

Commit fe154a2

Browse files
YueHaibingrobherring
authored andcommitted
drm/panfrost: Remove set but not used variable 'bo'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/panfrost/panfrost_job.c: In function 'panfrost_job_cleanup': drivers/gpu/drm/panfrost/panfrost_job.c:278:31: warning: variable 'bo' set but not used [-Wunused-but-set-variable] commit bdefca2 ("drm/panfrost: Add the panfrost_gem_mapping concept") involved this unused variable. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Steven Price <[email protected]> Reviewed-by: Alyssas Rosenzweig <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 5c320b6 commit fe154a2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/gpu/drm/panfrost/panfrost_job.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,8 @@ static void panfrost_job_cleanup(struct kref *ref)
280280
}
281281

282282
if (job->bos) {
283-
struct panfrost_gem_object *bo;
284-
285-
for (i = 0; i < job->bo_count; i++) {
286-
bo = to_panfrost_bo(job->bos[i]);
283+
for (i = 0; i < job->bo_count; i++)
287284
drm_gem_object_put_unlocked(job->bos[i]);
288-
}
289285

290286
kvfree(job->bos);
291287
}

0 commit comments

Comments
 (0)