drm/amd/display: Remove unnecessary conversion to bool
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 18 Mar 2021 02:36:52 +0000 (10:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:37:23 +0000 (23:37 -0400)
Fix the following coccicheck warnings:

./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c:220:65-70:
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_dwb_cm.c

index 8593145379d99d81f2bd4203beb3e3d6769ecd2c..3fe9e41e4dbd7627e474caa9e348097bce32c489 100644 (file)
@@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut(
        else
                next_mode = LUT_RAM_A;
 
-       dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A ? true : false);
+       dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A);
 
        if (next_mode == LUT_RAM_A)
                dwb3_program_ogam_luta_settings(dwbc30, params);