aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@amd.com>2020-01-20 13:54:30 +0100
committerAlex Deucher <alexander.deucher@amd.com>2020-01-22 16:55:27 -0500
commita9d4fe2fd6529c3129ec6883b8649ea5c7eee4d3 (patch)
treeb62fbf91903a954a21f8cf21ff8b039fc412dfda /drivers/gpu/drm/amd/amdgpu/navi10_ih.c
parentdrm/amdgpu: add RAS support for the gfx block of Arcturus (diff)
downloadlinux-dev-a9d4fe2fd6529c3129ec6883b8649ea5c7eee4d3.tar.xz
linux-dev-a9d4fe2fd6529c3129ec6883b8649ea5c7eee4d3.zip
drm/amdgpu: remove unnecessary conversion to bool
Better clean that up before some automation starts to complain about it Signed-off-by: Nirmoy Das <nirmoy.das@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/navi10_ih.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/navi10_ih.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
index f737ce459c28..cf557a428298 100644
--- a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
@@ -426,7 +426,7 @@ static int navi10_ih_set_clockgating_state(void *handle,
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
navi10_ih_update_clockgating_state(adev,
- state == AMD_CG_STATE_GATE ? true : false);
+ state == AMD_CG_STATE_GATE);
return 0;
}