LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/display: Fix duplicated argument
@ 2021-06-16 14:40 Wan Jiabing
  2021-06-18 13:55 ` Harry Wentland
  0 siblings, 1 reply; 3+ messages in thread
From: Wan Jiabing @ 2021-06-16 14:40 UTC (permalink / raw
  To: Harry Wentland, Leo Li, Alex Deucher, Christian König,
	Pan, Xinhui, David Airlie, Daniel Vetter, Solomon Chiu,
	Wan Jiabing, Dmytro Laktyushkin, Nicholas Kazlauskas, Anson Jacob,
	amd-gfx, dri-devel, linux-kernel
  Cc: kael_w

Fix coccicheck warning:

./drivers/gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c:
55:12-42: duplicated argument to && or ||

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 .../gpu/drm/amd/display/dc/dml/dcn31/display_rq_dlg_calc_31.c   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 cb15525ddb49..dc8b3afef301 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;
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-18 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-16 14:40 [PATCH] drm/display: Fix duplicated argument Wan Jiabing
2021-06-18 13:55 ` Harry Wentland
2021-06-18 20:38   ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).