drm/amd/display: remove unnecessary conversion to bool
Subsystems (3)
PATCH 1/1 drm/amd/display: remove unnecessary conversion to bool
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c:243:67-72:
WARNING: conversion to bool not needed here.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c +1 -1
@@ -240,7 +240,7 @@ bool dpp3_program_gamcor_lut( next_mode =LUT_RAM_A ;dpp3_power_on_gamcor_lut (dpp_base, true); -dpp3_configure_gamcor_lut (dpp_base, next_mode ==LUT_RAM_A ? true:false); +dpp3_configure_gamcor_lut (dpp_base, next_mode ==LUT_RAM_A );if (next_mode ==LUT_RAM_B ) { gam_regs.start_cntl_b =REG (CM_GAMCOR_RAMB_START_CNTL_B );
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 8 lines · Jiapeng Chong
Fix the following coccicheck warnings:
./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c:243:67-72:
WARNING: conversion to bool not needed here.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied. Thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c +1
-2@@ -240,7 +240,7 @@ bool dpp3_program_gamcor_lut( next_mode =LUT_RAM_A ;dpp3_power_on_gamcor_lut (dpp_base, true); -dpp3_configure_gamcor_lut (dpp_base, next_mode ==LUT_RAM_A ? true:false); +dpp3_configure_gamcor_lut (dpp_base, next_mode ==LUT_RAM_A );if (next_mode ==LUT_RAM_B ) { gam_regs.start_cntl_b =REG (CM_GAMCOR_RAMB_START_CNTL_B ); --1.8.3.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel