]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drm/amdgpu: cleanup unused iterator members for sdma v2.4
authorHuang Rui <ray.huang@amd.com>
Mon, 14 Nov 2016 12:44:34 +0000 (20:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2016 20:08:41 +0000 (15:08 -0500)
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>
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c

index 1b44d5bc72f21f426e8aeb3210b6b365810f8108..fbe74a33899c6ba6aa894e79c27127755dade4fa 100644 (file)
@@ -779,7 +779,7 @@ static void sdma_v2_4_vm_write_pte(struct amdgpu_ib *ib, uint64_t pe,
        ib->ptr[ib->length_dw++] = pe;
        ib->ptr[ib->length_dw++] = upper_32_bits(pe);
        ib->ptr[ib->length_dw++] = ndw;
-       for (; ndw > 0; ndw -= 2, --count, pe += 8) {
+       for (; ndw > 0; ndw -= 2) {
                ib->ptr[ib->length_dw++] = lower_32_bits(value);
                ib->ptr[ib->length_dw++] = upper_32_bits(value);
                value += incr;