]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Remove set but not used variable 'bo'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 3 Feb 2020 15:27:24 +0000 (15:27 +0000)
committerRob Herring <robh@kernel.org>
Wed, 12 Feb 2020 19:49:55 +0000 (13:49 -0600)
commit353cf6f6999bb8121fc4bf87414b7901a91cbd8e
treeaecd7ebfba4324b008be2420f48e11ce9f614ba5
parente310586f17a0789531d83507fa77c8b7ee888123
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 ff6236b2330c ("drm/panfrost: Add the panfrost_gem_mapping concept")
involved this unused variable.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssas Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200203152724.42611-1-yuehaibing@huawei.com
drivers/gpu/drm/panfrost/panfrost_job.c