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

drm/amdgpu: cleanup unused iterator members for sdma v3

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Huang Rui and committed by
Alex Deucher
4bc07289 45682886

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
··· 981 981 ib->ptr[ib->length_dw++] = lower_32_bits(pe); 982 982 ib->ptr[ib->length_dw++] = upper_32_bits(pe); 983 983 ib->ptr[ib->length_dw++] = ndw; 984 - for (; ndw > 0; ndw -= 2, --count, pe += 8) { 984 + for (; ndw > 0; ndw -= 2) { 985 985 ib->ptr[ib->length_dw++] = lower_32_bits(value); 986 986 ib->ptr[ib->length_dw++] = upper_32_bits(value); 987 987 value += incr;