OSDN Git Service

drm/amdkfd: remove set but not used variable 'top_dev'
authorzhengbin <zhengbin13@huawei.com>
Thu, 14 Nov 2019 03:20:25 +0000 (11:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:51 +0000 (10:12 -0500)
commitd191bd678153307573d615bb42da4fcca19fe477
tree60583e0c194cf584f974de1fd5b8b994b23efc82
parent09ba2e7d68f8c24ef3c7469d6632818c535bcb2c
drm/amdkfd: remove set but not used variable 'top_dev'

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

drivers/gpu/drm/amd/amdkfd/kfd_iommu.c: In function kfd_iommu_device_init:
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c:65:30: warning: variable top_dev set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 1ae99eab34f9 ("drm/amdkfd: Initialize HSA_CAP_ATS_PRESENT capability in topology codes")
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c