Commit ea23ff02 authored by Zhen Lei's avatar Zhen Lei Committed by Alex Deucher

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 29b25b70
...@@ -482,7 +482,7 @@ bool dpp20_program_blnd_lut( ...@@ -482,7 +482,7 @@ bool dpp20_program_blnd_lut(
next_mode = LUT_RAM_A; next_mode = LUT_RAM_A;
dpp20_power_on_blnd_lut(dpp_base, true); 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) if (next_mode == LUT_RAM_A)
dpp20_program_blnd_luta_settings(dpp_base, params); dpp20_program_blnd_luta_settings(dpp_base, params);
...@@ -893,7 +893,7 @@ bool dpp20_program_shaper( ...@@ -893,7 +893,7 @@ bool dpp20_program_shaper(
else else
next_mode = LUT_RAM_A; 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) if (next_mode == LUT_RAM_A)
dpp20_program_shaper_luta_settings(dpp_base, params); dpp20_program_shaper_luta_settings(dpp_base, params);
......
...@@ -874,7 +874,7 @@ bool mpc3_program_shaper( ...@@ -874,7 +874,7 @@ bool mpc3_program_shaper(
else else
next_mode = LUT_RAM_A; 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) if (next_mode == LUT_RAM_A)
mpc3_program_shaper_luta_settings(mpc, params, rmu_idx); mpc3_program_shaper_luta_settings(mpc, params, rmu_idx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment