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/dcn20/dcn20_dpp_cm.c:896:68-73:
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/dcn20/dcn20_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c +1 -1
@@ -893,7 +893,7 @@ bool dpp20_program_shaper(else next_mode =LUT_RAM_A ; -dpp20_configure_shaper_lut (dpp_base, next_mode ==LUT_RAM_A ? true:false); +dpp20_configure_shaper_lut (dpp_base, next_mode ==LUT_RAM_A );if (next_mode ==LUT_RAM_A )dpp20_program_shaper_luta_settings (dpp_base, params);
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel