drm/amd/display: remove unnecessary conversion to bool
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 25 Feb 2021 09:19:02 +0000 (17:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2021 22:23:49 +0000 (17:23 -0500)
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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c

index 33985401f25cba88b822bc15ad3d26c9cd70a09e..102f6a0c954ca0babd18319a9989262ad8219ef6 100644 (file)
@@ -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);