Skip to content

Commit cca3306

Browse files
Tom Rixalexdeucher
authored andcommitted
drm/amdgpu: remove unused variable ring
building with gcc and W=1 reports drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:81:29: error: variable ‘ring’ set but not used [-Werror=unused-but-set-variable] 81 | struct amdgpu_ring *ring; | ^~~~ ring is not used so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent ca87c9a commit cca3306

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ static void vcn_v4_0_set_ras_funcs(struct amdgpu_device *adev);
7878
static int vcn_v4_0_early_init(void *handle)
7979
{
8080
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
81-
struct amdgpu_ring *ring;
8281

8382
if (amdgpu_sriov_vf(adev)) {
8483
adev->vcn.harvest_config = VCN_HARVEST_MMSCH;
8584
for (int i = 0; i < adev->vcn.num_vcn_inst; ++i) {
86-
ring = &adev->vcn.inst[i].ring_enc[0];
8785
if (amdgpu_vcn_is_disabled_vcn(adev, VCN_ENCODE_RING, i)) {
8886
adev->vcn.harvest_config |= 1 << i;
8987
dev_info(adev->dev, "VCN%d is disabled by hypervisor\n", i);

0 commit comments

Comments
 (0)