Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3709472rwa; Tue, 23 Aug 2022 08:52:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4PLmEr2La37rStzKs5XneDE+Fxf6SKclCLbBsHRDbzKrl1rt3K++ftV8AkTA5S+X1V1JTt X-Received: by 2002:a05:6a00:2308:b0:52f:8ae9:9465 with SMTP id h8-20020a056a00230800b0052f8ae99465mr25373811pfh.77.1661269953769; Tue, 23 Aug 2022 08:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661269953; cv=none; d=google.com; s=arc-20160816; b=uYj1hDH5r9YQDOcPO+XK/2L/c/Uk41iTP8oQaMx2dkT9ywr5B+jPCZMewB5rMyHm4W ZD/NR3HTID8kfnfZ8wdipy1qWQBlUtw5BVsObVWL7NujP27F9uN6pqEaPFkt5Gkk/jIA ENDULK5ihuJ3URCxXuwWX+Elww3nWhzqC2Y/hJ085aoOzG9KJn2xSCpSmjI2yrvDBfXL GtKMS911D2yd+67+DiljTgCZNhzxb7zp6qyWESx+zP3iNnkjLl8khE4q+JypWCDDFHVj IkxZ475MkuZI6F+8Ie9aRMRpTuLQicm2XF1UoBRnpA9/hsU5JTY5dMlHx8SCf0FOJwGi X7Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :message-id:dkim-signature; bh=RA9jJQnzvmiOXSOJwKdSdg1Hs40SVTaauC+UthfuZcg=; b=M9hSDYAKPYdDgSmuUJ1c/rSvWMELvtmq0btOHFWFbtfjPcUbZ/72zVDTU7bWITfkVO DbYgIN9IrtIoZOoqR/bmPO0kbsLcwMlAQjzZefvrVPC0cgWTn46Tnb8uRmoqgUqb8A6G JpW7uO8ewZKeqAtV/8w3I7DV7FTxAtAXT+C5iQugRGyGb1nKl1X9b8gU+7awO29Vk/kl 9RGVoYxFWJeM5e30Wcw1b0zQApyfMqD/hW/V8kw89PicKIFYRvBRQetNKH4jIbCEhYbJ BV8H9gdQCMuVz8dPIvb4dsldbPJZ9Reycpwa5BOWHkyex2Jk4z1oW1gxxMljl0ZlgsHh w6Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=XjuQxErf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i26-20020a633c5a000000b0042966cc11b9si15627206pgn.77.2022.08.23.08.52.09; Tue, 23 Aug 2022 08:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=XjuQxErf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243318AbiHWPr2 (ORCPT + 99 others); Tue, 23 Aug 2022 11:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243375AbiHWPq7 (ORCPT ); Tue, 23 Aug 2022 11:46:59 -0400 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BAD02AD405 for ; Tue, 23 Aug 2022 04:47:38 -0700 (PDT) Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MBnWk5CFXzDqMd; Tue, 23 Aug 2022 11:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1661255219; bh=GwIk1+ABB8Bt5RsJjevljtBAXhkaMQvoMH9paXaD1CU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XjuQxErfaidsto+3rb54e4iiOUd0WZZWHDpo4zxjQRxZcOYZh6Lffs8t8is3XQj5I 2DlXqEeTxLpm8b1iK+z/n/6FRlfjBWprZAYuDlY+Aw1/50yO+gBC/v7gBetN5IT7wl iCEDTVtgoO9PmnAT1W/+MuI57GbxyIc9wozGFBc0= X-Riseup-User-ID: 811DE57B9BADAD06DCC2871B63C045F761751702C7BD4FA6B502FAF4B736F29C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MBnWd3SxVz1yWm; Tue, 23 Aug 2022 11:46:53 +0000 (UTC) Message-ID: Date: Tue, 23 Aug 2022 08:46:47 -0300 MIME-Version: 1.0 Subject: Re: [PATCH v2] drm/amd: remove duplicated argument to && Content-Language: en-US To: Bernard Zhao , Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Aurabindo Pillai , Samson Tam , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: zhaojunkui2008@126.com References: <20220823071426.26015-1-bernard@vivo.com> From: =?UTF-8?Q?Ma=c3=adra_Canal?= In-Reply-To: <20220823071426.26015-1-bernard@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bernard On 8/23/22 04:14, Bernard Zhao wrote: > This patch trf to fis cocci warning: I believe that there are a couple of typos on this description. Maybe you could fixed to s/trf/try and s/fis/fix. > drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c: > 2349:8-34: duplicated argument to && or || > drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c: > 3680:8-55: duplicated argument to && or || > > Signed-off-by: Bernard Zhao Also, it would be nice to have a changelog between the versions. Other than those small nits, Reviewed-by: Maíra Canal Best Regards, - Maíra Canal > --- > .../gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > index cb2025771646..f99c1696a1f6 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > @@ -2346,8 +2346,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l > > if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.ForcedOutputLinkBPP[k] != 0) > mode_lib->vba.DSCOnlyIfNecessaryWithBPP = true; > - if ((mode_lib->vba.DSCEnable[k] || mode_lib->vba.DSCEnable[k]) > - && mode_lib->vba.OutputFormat[k] == dm_n422 > + if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.OutputFormat[k] == dm_n422 > && !mode_lib->vba.DSC422NativeSupport) > mode_lib->vba.DSC422NativeNotSupported = true; > > @@ -3678,7 +3677,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l > if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 > && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 > && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 > - && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 > && mode_lib->vba.SourcePixelFormat[k] != dm_444_8 > && mode_lib->vba.SourcePixelFormat[k] != dm_rgbe) { > if (mode_lib->vba.ViewportWidthChroma[k] > mode_lib->vba.SurfaceWidthC[k]