diff options
| author | Liao Yuanhong <liaoyuanhong@vivo.com> | 2025-09-04 19:31:57 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-05 17:38:39 -0400 |
| commit | 7a50377cea5f1f39a91d64eb8c522ee760c91b56 (patch) | |
| tree | a87150855ea36f66a65da886b65346e2d5d2e061 | |
| parent | drm/amd/pm/powerplay/smumgr: remove redundant ternary operators (diff) | |
| download | linux-7a50377cea5f1f39a91d64eb8c522ee760c91b56.tar.gz linux-7a50377cea5f1f39a91d64eb8c522ee760c91b56.zip | |
drm/radeon/atom: Remove redundant ternary operators
For ternary operators in the form of "a ? true : false", if 'a' itself
returns a boolean result, the ternary operator can be omitted. Remove
redundant ternary operators to clean up the code.
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/radeon/atombios_encoders.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c index d1c5e471bdca..3d9f47bc807a 100644 --- a/drivers/gpu/drm/radeon/atombios_encoders.c +++ b/drivers/gpu/drm/radeon/atombios_encoders.c @@ -1832,7 +1832,7 @@ radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode) return; } - radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); + radeon_atombios_encoder_dpms_scratch_regs(encoder, mode == DRM_MODE_DPMS_ON); } |
