Commit 955df04e authored by Chen Zhou's avatar Chen Zhou Committed by Alex Deucher
Browse files

drm/amdgpu/uvd7: remove unnecessary conversion to bool



The conversion to bool is not needed, remove it.

Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1bd9c939
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1694,7 +1694,7 @@ static int uvd_v7_0_set_clockgating_state(void *handle,
					  enum amd_clockgating_state state)
{
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
	bool enable = (state == AMD_CG_STATE_GATE) ? true : false;
	bool enable = (state == AMD_CG_STATE_GATE);

	uvd_v7_0_set_bypass_mode(adev, enable);