drm/amdgpu: Clean up errors in amdgpu_ib.c
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +2 -2
@@ -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;
Signature · 1 line
2.17.1