Skip to content

Commit ea23ff0

Browse files
Zhen Leialexdeucher
authored andcommitted
drm/amd/display: Delete several unneeded bool conversions
The result of an expression consisting of a single relational operator is already of the bool type and does not need to be evaluated explicitly. No functional change. Signed-off-by: Zhen Lei <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 29b25b7 commit ea23ff0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ bool dpp20_program_blnd_lut(
482482
next_mode = LUT_RAM_A;
483483

484484
dpp20_power_on_blnd_lut(dpp_base, true);
485-
dpp20_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
485+
dpp20_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);
486486

487487
if (next_mode == LUT_RAM_A)
488488
dpp20_program_blnd_luta_settings(dpp_base, params);
@@ -893,7 +893,7 @@ bool dpp20_program_shaper(
893893
else
894894
next_mode = LUT_RAM_A;
895895

896-
dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
896+
dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);
897897

898898
if (next_mode == LUT_RAM_A)
899899
dpp20_program_shaper_luta_settings(dpp_base, params);

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ bool mpc3_program_shaper(
874874
else
875875
next_mode = LUT_RAM_A;
876876

877-
mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A ? true:false, rmu_idx);
877+
mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, rmu_idx);
878878

879879
if (next_mode == LUT_RAM_A)
880880
mpc3_program_shaper_luta_settings(mpc, params, rmu_idx);

0 commit comments

Comments
 (0)