drm/amdgpu: Remove two ! operations in an if condition
Make the code easier to understand. Signed-off-by: Alex Xie <AlexBin.Xie@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user