Skip to content

Commit 74ef3ba

Browse files
Jiapeng Chongalexdeucher
authored andcommitted
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: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 79fcd44 commit 74ef3ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut(
718718
next_mode = LUT_RAM_B;
719719

720720
dpp3_power_on_blnd_lut(dpp_base, true);
721-
dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
721+
dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);
722722

723723
if (next_mode == LUT_RAM_A)
724724
dpp3_program_blnd_luta_settings(dpp_base, params);
@@ -1136,7 +1136,7 @@ bool dpp3_program_shaper(
11361136
else
11371137
next_mode = LUT_RAM_A;
11381138

1139-
dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false);
1139+
dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);
11401140

11411141
if (next_mode == LUT_RAM_A)
11421142
dpp3_program_shaper_luta_settings(dpp_base, params);

0 commit comments

Comments
 (0)