diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-03-25 05:32:50 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-04-01 21:44:43 +0300 |
commit | 955df04e3b31c9365f52ff16588eec434d33dd60 (patch) | |
tree | da1e7896664c02f899fc80c3026620eb37b98b57 /drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | |
parent | 1bd9c9392732d4829d13f25f7a9bf46a18e99a71 (diff) | |
download | linux-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.c | 2 |
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); |