Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -680,9 +680,8 @@ bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring,

	if (amdgpu_vm_had_gpu_reset(adev, id))
		return true;
	if (!vm_flush_needed && !gds_switch_needed)
		return false;
	return true;

	return vm_flush_needed || gds_switch_needed;
}

/**