]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: cleanup si_dma_ring_test_ib
authorChristian König <christian.koenig@amd.com>
Tue, 30 Oct 2018 12:07:26 +0000 (13:07 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:30 +0000 (14:21 -0500)
Accidentially missed during the last cleanup.

Signed-off-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/si_dma.c

index 68718ddf6ed04297f5c5b4b0448595606e7f386a..bff6954c21503f28ffdd6d9a7680aaf69e77f88f 100644 (file)
@@ -286,13 +286,10 @@ static int si_dma_ring_test_ib(struct amdgpu_ring *ring, long timeout)
                goto err1;
        }
        tmp = le32_to_cpu(adev->wb.wb[index]);
-       if (tmp == 0xDEADBEEF) {
-               DRM_DEBUG("ib test on ring %d succeeded\n", ring->idx);
+       if (tmp == 0xDEADBEEF)
                r = 0;
-       } else {
-               DRM_ERROR("amdgpu: ib test failed (0x%08X)\n", tmp);
+       else
                r = -EINVAL;
-       }
 
 err1:
        amdgpu_ib_free(adev, &ib, NULL);