drm/amdgpu: remove unnecessary conversion to bool
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / uvd_v5_0.c
index 01e62fb..0fa8aae 100644 (file)
@@ -763,7 +763,7 @@ static int uvd_v5_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);
 
        if (enable) {
                /* wait for STATUS to clear */