Commit 7a78e2bc authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Alex Deucher

drm/amd/display: Remove unnecessary conversion to bool

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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 74ef3bac
...@@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut( ...@@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut(
else else
next_mode = LUT_RAM_A; 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) if (next_mode == LUT_RAM_A)
dwb3_program_ogam_luta_settings(dwbc30, params); dwb3_program_ogam_luta_settings(dwbc30, params);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment