drm/amd/display: Remove unnecessary conversion to bool
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 15 Mar 2021 08:22:02 +0000 (16:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:31:14 +0000 (23:31 -0400)
Fix the following coccicheck warnings:

./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c:358:69-74: 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_mpc.c

index a7598356f37d21b49c3151df8f3285763157adf8..910c17fd42789326500d5dc979b39402d8253fa8 100644 (file)
@@ -357,7 +357,7 @@ void mpc3_set_output_gamma(
                next_mode = LUT_RAM_A;
 
        mpc3_power_on_ogam_lut(mpc, mpcc_id, true);
-       mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A ? true:false);
+       mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A);
 
        if (next_mode == LUT_RAM_A)
                mpc3_program_luta(mpc, mpcc_id, params);