]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: remove set but not used variable 'grbm_soft_reset'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 8 Dec 2018 15:01:13 +0000 (15:01 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Dec 2018 20:21:20 +0000 (15:21 -0500)
commit2e431a1788c52d510bb24229cef93ba935f5785b
tree242b3c6b6e9a6a69767fb46f05e805bc35a401b1
parent08d1bdd4cc57e89d037205687a61d2b6ff9dddd4
drm/amdgpu: remove set but not used variable 'grbm_soft_reset'

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

drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function 'gfx_v8_0_pre_soft_reset':
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:4950:27: warning:
 variable 'srbm_soft_reset' set but not used [-Wunused-but-set-variable]

drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function 'gfx_v8_0_post_soft_reset':
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:5054:27: warning:
 variable 'srbm_soft_reset' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit d31a501ead7f ("drm/amdgpu: add
pre_soft_reset ip func") and e4ae0fc33631 ("drm/amdgpu: implement
gfx8 post_soft_reset")

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c