summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbaci Team <abaci-bugfix@linux.alibaba.com>2021-01-28 16:49:34 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-02-01 11:51:46 -0500
commit20bdcc99edff52727c23eb101cdf07bbe095922b (patch)
tree9ea70052c62ca72a049670fe2eacb716add6f789
parentd26bbbcc160f6d9feabed73dca62b9e8b86671b4 (diff)
downloadlinux-20bdcc99edff52727c23eb101cdf07bbe095922b.tar.gz
linux-20bdcc99edff52727c23eb101cdf07bbe095922b.tar.bz2
linux-20bdcc99edff52727c23eb101cdf07bbe095922b.zip
drm/amd/display: Simplify bool conversion
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c:3137:35-40: WARNING: conversion to bool not needed here Reported-by: Abaci Robot <abaci@linux.alibaba.com> Suggested-by: Yang Li <oswb@linux.alibaba.com> Signed-off-by: Abaci Team <abaci-bugfix@linux.alibaba.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 7a30d1d9b535..95a87dbc024d 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -3134,7 +3134,7 @@ void dcn10_setup_stereo(struct pipe_ctx *pipe_ctx, struct dc *dc)
pipe_ctx->stream_res.opp->funcs->opp_program_stereo(
pipe_ctx->stream_res.opp,
- flags.PROGRAM_STEREO == 1 ? true:false,
+ flags.PROGRAM_STEREO == 1,
&stream->timing);
pipe_ctx->stream_res.tg->funcs->program_stereo(