Skip to content

Commit

Permalink
drm/amd/display: Remove unnecessary conversion to bool
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiapeng Chong authored and Alex Deucher committed Mar 24, 2021
1 parent 74ef3ba commit 7a78e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a78e2b

Please sign in to comment.