Commit 5a613586 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Alex Deucher

drm/amd/display: Remove unnecessary conversion to bool

Fix the following coccicheck warnings:

./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c:358:69-74: WARNING:
conversion to bool not needed here.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e5527d8c
...@@ -357,7 +357,7 @@ void mpc3_set_output_gamma( ...@@ -357,7 +357,7 @@ void mpc3_set_output_gamma(
next_mode = LUT_RAM_A; next_mode = LUT_RAM_A;
mpc3_power_on_ogam_lut(mpc, mpcc_id, true); mpc3_power_on_ogam_lut(mpc, mpcc_id, true);
mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A ? true:false); mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A) if (next_mode == LUT_RAM_A)
mpc3_program_luta(mpc, mpcc_id, params); mpc3_program_luta(mpc, mpcc_id, params);
......
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