提交 bb37b67d 编写于 作者: A Alex Xie 提交者: Alex Deucher

drm/amdgpu: Remove two ! operations in an if condition

 Make the code easier to understand.
Signed-off-by: NAlex Xie <AlexBin.Xie@amd.com>
Reviewed-by: NMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: NChunming Zhou <david1.zhou@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 dd684d31
...@@ -680,9 +680,8 @@ bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, ...@@ -680,9 +680,8 @@ bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring,
if (amdgpu_vm_had_gpu_reset(adev, id)) if (amdgpu_vm_had_gpu_reset(adev, id))
return true; return true;
if (!vm_flush_needed && !gds_switch_needed)
return false; return vm_flush_needed || gds_switch_needed;
return true;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册