summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
diff options
context:
space:
mode:
authorChen Zhou <chenzhou10@huawei.com>2020-03-25 05:32:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-04-01 21:44:43 +0300
commit955df04e3b31c9365f52ff16588eec434d33dd60 (patch)
treeda1e7896664c02f899fc80c3026620eb37b98b57 /drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
parent1bd9c9392732d4829d13f25f7a9bf46a18e99a71 (diff)
downloadlinux-955df04e3b31c9365f52ff16588eec434d33dd60.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
index 0995378d8263..20f10a5617ca 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
@@ -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);