[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240111022249.6151-1-chenxb_99091@126.com>
Date: Thu, 11 Jan 2024 02:22:49 +0000
From: chenxuebing <chenxb_99091@....com>
To: christian.koenig@....com,
daniel@...ll.ch,
airlied@...il.com,
Xinhui.Pan@....com,
alexander.deucher@....com
Cc: linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
amd-gfx@...ts.freedesktop.org,
chenxuebing <chenxb_99091@....com>
Subject: [PATCH] drm/amdgpu: Clean up errors in amdgpu_ib.c
Fix the following errors reported by checkpatch:
ERROR: do not use assignment in if condition
Signed-off-by: chenxuebing <chenxb_99091@....com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 6aa3b1d845ab..440e7aa45c66 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -191,9 +191,9 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned int num_ibs,
}
need_ctx_switch = ring->current_ctx != fence_ctx;
+ tmp = amdgpu_sync_get_fence(&job->explicit_sync);
if (ring->funcs->emit_pipeline_sync && job &&
- ((tmp = amdgpu_sync_get_fence(&job->explicit_sync)) ||
- (amdgpu_sriov_vf(adev) && need_ctx_switch) ||
+ (tmp || (amdgpu_sriov_vf(adev) && need_ctx_switch) ||
amdgpu_vm_need_pipeline_sync(ring, job))) {
need_pipe_sync = true;
--
2.17.1
Powered by blists - more mailing lists