OSDN Git Service

drm/amdgpu: remove set but not used variable 'psp_enabled'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 27 Jun 2019 07:53:50 +0000 (07:53 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 03:18:51 +0000 (22:18 -0500)
commit6892c1f866bf17f9c945f04716610e4240c35f54
tree8681936306e952e17cf668b9593caffb0d9b1c98
parentb859c579cdff00a6458d69442a19f85a403fd71b
drm/amdgpu: remove set but not used variable 'psp_enabled'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpu/drm/amd/amdgpu/nv.c: In function 'nv_common_early_init':
drivers/gpu/drm/amd/amdgpu/nv.c:471:7: warning:
 variable 'psp_enabled' set but not used [-Wunused-but-set-variable]

It's not used since inroduction in
commit c6b6a42175f5 ("drm/amdgpu: add navi10 common ip block (v3)")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c