Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/uvd7: remove unnecessary conversion to bool

The conversion to bool is not needed, remove it.

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Chen Zhou and committed by
Alex Deucher
955df04e 1bd9c939

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
··· 1694 1694 enum amd_clockgating_state state) 1695 1695 { 1696 1696 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 1697 - bool enable = (state == AMD_CG_STATE_GATE) ? true : false; 1697 + bool enable = (state == AMD_CG_STATE_GATE); 1698 1698 1699 1699 uvd_v7_0_set_bypass_mode(adev, enable); 1700 1700