Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp554346rwo; Tue, 1 Aug 2023 23:42:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGdiFHDAkhvge5tH/oC6mY3SqNOINijFC5xurjTt/lYtjNOLZ0ySJYUrd+JdXkMiQ8I1FJ X-Received: by 2002:aa7:d9d2:0:b0:522:7db8:9939 with SMTP id v18-20020aa7d9d2000000b005227db89939mr4566636eds.29.1690958570049; Tue, 01 Aug 2023 23:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690958570; cv=none; d=google.com; s=arc-20160816; b=nId+VtoBpCrUzPEp3vUQfvijAPi3edcbER8JT72z0PzltypJkWaQQ2uNc+fEA3rD1l jg37BEOw67uDXepCZUFVOW4u5yxbkrTNw32iGJHdWTIddzdIS8oIFLmLWfsjDeZj6fM8 qNL9S12qvHExnCUmMPC4W/MVJYwC4ksqyOowOI6S/+5HWzdVuoHfv1iDHEMC2rYaYFON eISv4Trie2bik4uUF+IxMmIVJDFihHvbaJGqEE7eJak1/TpFNJdJzFjpbKN6nJWvKOjB OTYYi2w81k6V/s7/tbqL/Ojy9u9QJ00Wr/XbcpW01Rpyn1NnbHOM+FF+TWW3pjlNPFsd 3txg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=EYWyu62TiT59DwvWtr83XAl5+2ZMNcw85cOxxJr1u00=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=KebOxXlFRqykKdYSCcxyhM08ZCMH0TlTGSapMs+Nk7kuP793lhYxxSWNIs8u605uSj Nqqquwuzelbai6kqg5jzcIF4WL4YS08rEgEN4xndCzSdmzDLLBnjKVT4A7eCGTPd8Lxj ZdDEyxO41+KG/MxtM5lm0+cBGMpJA8ss3Lzl+4u9j64bqsOjEqqKyxGaDYM8CS5q5a+v QX2dRB3aL4v4TIMsvEbisUG/DZApSTE68tWtTAQFHjhrC8yqtVNVomea0df1EssHeP0h cau6gSjCu1DSEqqqTLSndq5Zf8KeLQGPVvuHT2tmid6FqcUZA2zqIVWxrCEgjipPPzXv Kzfw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020aa7c448000000b0051dd525dd79si8779712edr.521.2023.08.01.23.42.25; Tue, 01 Aug 2023 23:42:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231362AbjHBGUi (ORCPT + 99 others); Wed, 2 Aug 2023 02:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjHBGUg (ORCPT ); Wed, 2 Aug 2023 02:20:36 -0400 Received: from out28-147.mail.aliyun.com (out28-147.mail.aliyun.com [115.124.28.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C03C26A2 for ; Tue, 1 Aug 2023 23:20:34 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.3399406|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0739442-0.00121786-0.924838;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047206;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6Y2FoY_1690957226; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6Y2FoY_1690957226) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 14:20:29 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/display: Clean up errors in display_mode_vba_30.c Date: Wed, 2 Aug 2023 06:20:25 +0000 Message-Id: <20230802062025.11332-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Fix the following errors reported by checkpatch: ERROR: else should follow close brace '}' Signed-off-by: Ran Sun --- .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c index 9af1a43c042b..ad741a723c0e 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c @@ -784,8 +784,7 @@ static unsigned int dscComputeDelay(enum output_format_class pixelFormat, enum o Delay = Delay + 1; // sft Delay = Delay + 1; - } - else { + } else { // sfr Delay = Delay + 2; // dsccif @@ -3489,8 +3488,7 @@ static double TruncToValidBPP( if (Format == dm_n422) { MinDSCBPP = 7; MaxDSCBPP = 2 * DSCInputBitPerComponent - 1.0 / 16.0; - } - else { + } else { MinDSCBPP = 8; MaxDSCBPP = 3 * DSCInputBitPerComponent - 1.0 / 16.0; } -- 2.17.1