From: Wan Jiabing Date: Wed, 16 Jun 2021 14:40:17 +0000 (+0800) Subject: drm/display: Fix duplicated argument X-Git-Tag: accepted/tizen/unified/20230118.172025~6864^2~5^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9db759652044ea96fc2905d2c5f926f30ca3413;p=platform%2Fkernel%2Flinux-rpi.git drm/display: Fix duplicated argument Fix coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c: 55:12-42: duplicated argument to && or || Reviewed-by: Harry Wentland Signed-off-by: Wan Jiabing Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c index cb15525..dc8b3af 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c @@ -52,7 +52,7 @@ static bool CalculateBytePerPixelAnd256BBlockSizes( *BytePerPixelDETC = 0; *BytePerPixelY = 4; *BytePerPixelC = 0; - } else if (SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16) { + } else if (SourcePixelFormat == dm_444_16) { *BytePerPixelDETY = 2; *BytePerPixelDETC = 0; *BytePerPixelY = 2;