OSDN Git Service

drm/amdgpu: remove set but not used variable 'direct_poll' in vcn_v2_0.c
authorZheng Bin <zhengbin13@huawei.com>
Thu, 30 Apr 2020 02:26:52 +0000 (10:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Apr 2020 20:49:00 +0000 (16:49 -0400)
commitb35833479e53859cbe6b441cf1dcf9b1c49ee323
tree3fd9a06641d63d05122080a452247e3d4a05a6dc
parent2cba3944ec3710aab90fc84aec5a27a7ad47fc0a
drm/amdgpu: remove set but not used variable 'direct_poll' in vcn_v2_0.c

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

drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c:1848:39: warning: variable ‘direct_poll’ set but not used [-Wunused-but-set-variable]

It is introduced by commit dd26858a9cd8 ("drm/amdgpu:
implement initialization part on VCN2.0 for SRIOV"), but never used,
so remove it.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c