Commit bb37b67d authored by Alex Xie's avatar Alex Xie Committed by Alex Deucher

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

 Make the code easier to understand.
Signed-off-by: default avatarAlex Xie <AlexBin.Xie@amd.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarChunming Zhou <david1.zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment