Skip to content

Commit

Permalink
drm/amd/display: Delete several unneeded bool conversions
Browse files Browse the repository at this point in the history
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 <thunder.leizhen@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Zhen Lei authored and Alex Deucher committed May 11, 2021
1 parent 29b25b7 commit ea23ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ bool dpp20_program_blnd_lut(
next_mode = LUT_RAM_A;

dpp20_power_on_blnd_lut(dpp_base, true);
dpp20_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
dpp20_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);

if (next_mode == LUT_RAM_A)
dpp20_program_blnd_luta_settings(dpp_base, params);
Expand Down Expand Up @@ -893,7 +893,7 @@ bool dpp20_program_shaper(
else
next_mode = LUT_RAM_A;

dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);

if (next_mode == LUT_RAM_A)
dpp20_program_shaper_luta_settings(dpp_base, params);
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ bool mpc3_program_shaper(
else
next_mode = LUT_RAM_A;

mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A ? true:false, rmu_idx);
mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, rmu_idx);

if (next_mode == LUT_RAM_A)
mpc3_program_shaper_luta_settings(mpc, params, rmu_idx);
Expand Down

0 comments on commit ea23ff0

Please sign in to comment.