Skip to content

Commit 7a78e2b

Browse files
Jiapeng Chongalexdeucher
authored andcommitted
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: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 74ef3ba commit 7a78e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut(
217217
else
218218
next_mode = LUT_RAM_A;
219219

220-
dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A ? true : false);
220+
dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A);
221221

222222
if (next_mode == LUT_RAM_A)
223223
dwb3_program_ogam_luta_settings(dwbc30, params);

0 commit comments

Comments
 (0)