提交 74ef3bac 编写于 作者: J Jiapeng Chong 提交者: Alex Deucher

drm/amd/display: Remove unnecessary conversion to bool

Fix the following coccicheck warnings:

./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:721:65-70: WARNING:
conversion to bool not needed here.

./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:1139:67-72: WARNING:
conversion to bool not needed here.
Reported-by: NAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 79fcd446
...@@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut( ...@@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut(
next_mode = LUT_RAM_B; next_mode = LUT_RAM_B;
dpp3_power_on_blnd_lut(dpp_base, true); dpp3_power_on_blnd_lut(dpp_base, true);
dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A) if (next_mode == LUT_RAM_A)
dpp3_program_blnd_luta_settings(dpp_base, params); dpp3_program_blnd_luta_settings(dpp_base, params);
...@@ -1136,7 +1136,7 @@ bool dpp3_program_shaper( ...@@ -1136,7 +1136,7 @@ bool dpp3_program_shaper(
else else
next_mode = LUT_RAM_A; next_mode = LUT_RAM_A;
dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A) if (next_mode == LUT_RAM_A)
dpp3_program_shaper_luta_settings(dpp_base, params); dpp3_program_shaper_luta_settings(dpp_base, params);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册