diff options
| author | 2019-11-13 20:44:30 +0800 | |
|---|---|---|
| committer | 2019-11-13 15:29:46 -0500 | |
| commit | a1bd079fca6219e18bb0892f0a7228a76dd6292c (patch) | |
| tree | 97d623eb925aa4871715698eec680f551ca1ccf1 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | |
| parent | drm/amdgpu: remove set but not used variable 'amdgpu_connector' (diff) | |
| download | linux-dev-a1bd079fca6219e18bb0892f0a7228a76dd6292c.tar.xz linux-dev-a1bd079fca6219e18bb0892f0a7228a76dd6292c.zip | |
drm/amdgpu: remove set but not used variable 'count'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/amd/amdkfd/kfd_device.c: In function
‘kgd2kfd_post_reset’:
drivers/gpu/drm/amd/amdkfd/kfd_device.c:745:11: warning:
variable ‘count’ set but not used [-Wunused-but-set-variable]
'count' is never used, so can be removed. Thus 'atomic_dec_return'
can be replaced as 'atomic_dec'
Fixes: e42051d2133b ("drm/amdkfd: Implement GPU reset handlers in KFD")
Signed-off-by: yu kuai <yukuai3@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c')
0 files changed, 0 insertions, 0 deletions
