mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
1bd9c93927
commit
955df04e3b
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user