Skip to content

Commit 7a50377

Browse files
LiaoYuanhong-vivoalexdeucher
authored andcommitted
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>
1 parent 9ab06ab commit 7a50377

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/radeon/atombios_encoders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode)
18321832
return;
18331833
}
18341834

1835-
radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false);
1835+
radeon_atombios_encoder_dpms_scratch_regs(encoder, mode == DRM_MODE_DPMS_ON);
18361836

18371837
}
18381838

0 commit comments

Comments
 (0)