Skip to content

Commit

Permalink
drm/amd/display: Remove unnecessary conversion to bool
Browse files Browse the repository at this point in the history
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: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Jiapeng Chong authored and Alex Deucher committed Mar 24, 2021
1 parent 79fcd44 commit 74ef3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut(
next_mode = LUT_RAM_B;

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)
dpp3_program_blnd_luta_settings(dpp_base, params);
Expand Down Expand Up @@ -1136,7 +1136,7 @@ bool dpp3_program_shaper(
else
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)
dpp3_program_shaper_luta_settings(dpp_base, params);
Expand Down

0 comments on commit 74ef3ba

Please sign in to comment.