OSDN Git Service

drm/amd/display: Simplify bool conversion
authorAbaci Team <abaci-bugfix@linux.alibaba.com>
Thu, 28 Jan 2021 08:49:34 +0000 (16:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Feb 2021 16:51:46 +0000 (11:51 -0500)
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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 7a30d1d..95a87db 100644 (file)
@@ -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(