aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Zhou <[email protected]>2020-03-25 10:32:50 +0800
committerAlex Deucher <[email protected]>2020-04-01 14:44:43 -0400
commit955df04e3b31c9365f52ff16588eec434d33dd60 (patch)
treeda1e7896664c02f899fc80c3026620eb37b98b57
parent1bd9c9392732d4829d13f25f7a9bf46a18e99a71 (diff)
drm/amdgpu/uvd7: remove unnecessary conversion to bool
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-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);