drm/amdgpu: Clean up errors in amdgpu_ring.h
authorRan Sun <sunran001@208suo.com>
Wed, 2 Aug 2023 07:28:13 +0000 (07:28 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:43:45 +0000 (09:43 -0400)
Fix the following errors reported by checkpatch:

ERROR: spaces required around that ':' (ctx:VxW)

Signed-off-by: Ran Sun <sunran001@208suo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h

index 028ff075db5120ed165642d7da7d7adb7347f20c..e2ab303ad2708ed14afe5ba24aace7883cb785c6 100644 (file)
@@ -389,7 +389,7 @@ static inline void amdgpu_ring_write_multiple(struct amdgpu_ring *ring,
        occupied = ring->wptr & ring->buf_mask;
        dst = (void *)&ring->ring[occupied];
        chunk1 = ring->buf_mask + 1 - occupied;
-       chunk1 = (chunk1 >= count_dw) ? count_dw: chunk1;
+       chunk1 = (chunk1 >= count_dw) ? count_dw : chunk1;
        chunk2 = count_dw - chunk1;
        chunk1 <<= 2;
        chunk2 <<= 2;