Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp775091pxj; Wed, 16 Jun 2021 13:19:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA2cR/SN82/09K9D6OnYm4by3uMaBFFp1YYRmV7jhuD1xuwyR8AcqowAfS5hx497YfQVi6 X-Received: by 2002:aa7:d2c4:: with SMTP id k4mr1850994edr.13.1623874786748; Wed, 16 Jun 2021 13:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623874786; cv=none; d=google.com; s=arc-20160816; b=hewXv5+vnawDSs6/7KMt/kABveskCY0LbABs5urO1MtYamE+pFEwTvOf8EZ9gVP4Lc 0+J4oXc1EXMTdRcb9qFrmfHf42DAeHfsGl2Mjl8jw0s2edsZpEt3jVVv7cvD3MrzZBuN DBPUJzxBKL+mH/yjaswnSrpjd5uEu44cpOyNY9PsT2KiROR4xCN+6vbII+zKrLygF8pb lFFU0YiR6OoJ0MZA494ZvtXDUmDMyk+K0yholkKA0yZn/3CzvCbTdHGVO0gdhM7MTjZz r4p7zdotKewG9fzkfZVP61a+HDq4DsB6R05cU4pK2aD4hEgq92SLl6CS/tHONmjuK0f/ fzYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nzgfyB066oFaVBGEf/uxwlSYulIxyQZSrA3RBgxK6Bw=; b=XU/FrmGaWN9W3qVS/Kbj/IOy2xSZNYUzwXr5lTUhTjJIvwigtXs7TRE6bGvQN1xWXb 4ThlTb0hKguy7fefbeZ8jBbOH904Gpv+4r6iicN0mFXRKNlo5Wce/veA58FxBxiyijWV Als3qvgWlZB3NH5elclCiKEP2SC9WO4JwbVs350UViIwMLa7L8cKSJym5S3xEMWgNEQO RR90Jjfz3tAxxjC3K2yWil3fm3PiGGLlnH9ksZ6d7RupZrj1fFQgYW1GZj5yKQpfZ+cB aWuzcEVjfwKI5xyuxc3c9WIjBU/EvP8LZTc1wpr1Dne2xnZg3QbNT8lAO8xUnip8JFNL tLiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@vivo.com header.s=default header.b=oWdj3MK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si3302299eja.498.2021.06.16.13.19.24; Wed, 16 Jun 2021 13:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@vivo.com header.s=default header.b=oWdj3MK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234088AbhFPOnM (ORCPT + 99 others); Wed, 16 Jun 2021 10:43:12 -0400 Received: from mail-m121144.qiye.163.com ([115.236.121.144]:38496 "EHLO mail-m121144.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234087AbhFPOnK (ORCPT ); Wed, 16 Jun 2021 10:43:10 -0400 DKIM-Signature: a=rsa-sha256; b=oWdj3MK6w00kMAtjf/o9RCmgDwsKgplJKew8/BHJabycQZUq46eLHQuQX2Oo4fv2H9ivLhj3quexArV/B0rYvD0XFih9FxsqsuAE1Cx/NZq08r7C8b2FgNPpacqWitaHBb65FPt5JPZdcrxJbMLj7O8f9xg1PSeilNIrGLR4ewU=; s=default; c=relaxed/relaxed; d=vivo.com; v=1; bh=nzgfyB066oFaVBGEf/uxwlSYulIxyQZSrA3RBgxK6Bw=; h=date:mime-version:subject:message-id:from; Received: from wanjb-KLV-WX9.. (unknown [121.229.73.16]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id B6A54AC01F0; Wed, 16 Jun 2021 22:40:41 +0800 (CST) From: Wan Jiabing To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Solomon Chiu , Wan Jiabing , Dmytro Laktyushkin , Nicholas Kazlauskas , Anson Jacob , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: [PATCH] drm/display: Fix duplicated argument Date: Wed, 16 Jun 2021 22:40:17 +0800 Message-Id: <20210616144027.27225-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQ00aTFYaT09IS05OQk4fTU1VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MTI6LSo4UT8cGU5PCx9IOTAo LxEaCUtVSlVKTUlIQ05PT09JSE9LVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlK SUpVSUlCVUxIVUpNWVdZCAFZQUlMS003Bg++ X-HM-Tid: 0a7a154465f2b039kuuub6a54ac01f0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../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