Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/si_dma: remove unused variable in si_dma_stop()

After commit 571c05365892 ("drm/amdgpu: switch sdma buffer function
tear down to a helper"), the variable 'ring' is not used anymore, it
can be removed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Yang Yingliang and committed by
Alex Deucher
7fe441d8 eb167078

-2
-2
drivers/gpu/drm/amd/amdgpu/si_dma.c
··· 112 112 113 113 static void si_dma_stop(struct amdgpu_device *adev) 114 114 { 115 - struct amdgpu_ring *ring; 116 115 u32 rb_cntl; 117 116 unsigned i; 118 117 119 118 amdgpu_sdma_unset_buffer_funcs_helper(adev); 120 119 121 120 for (i = 0; i < adev->sdma.num_instances; i++) { 122 - ring = &adev->sdma.instance[i].ring; 123 121 /* dma0 */ 124 122 rb_cntl = RREG32(DMA_RB_CNTL + sdma_offsets[i]); 125 123 rb_cntl &= ~DMA_RB_ENABLE;