diff options
| author | Ruan Jinjie <[email protected]> | 2023-08-04 02:46:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-09 13:39:56 +0000 |
| commit | 3b780089fd6eae8afdba4b8343af3418e5b45a5b (patch) | |
| tree | 344c42347bf6dfb5ec9c304a2112b646ba5208f3 /drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | |
| parent | drm/amd/display: Return value of function (diff) | |
| download | kernel-3b780089fd6eae8afdba4b8343af3418e5b45a5b.tar.gz kernel-3b780089fd6eae8afdba4b8343af3418e5b45a5b.zip | |
drm/amdgpu: Remove a lot of unnecessary ternary operators
There are many ternary operators, the true or false judgement
of which is unnecessary in C language semantics.
Signed-off-by: Ruan Jinjie <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c index b76ba21b5a89..9b662b105cc1 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -2095,7 +2095,7 @@ static int vcn_v3_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; int i; for (i = 0; i < adev->vcn.num_vcn_inst; ++i) { |
