Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3332179rwb; Mon, 7 Aug 2023 11:42:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IET1z4N8tVvf22Nen/mtrY7ZYQrZ5DkGUnHt6H6hpPxg/gNe2DCgee6Lap+LAcT59uXtST/ X-Received: by 2002:a05:6a00:2289:b0:66a:2771:6c4d with SMTP id f9-20020a056a00228900b0066a27716c4dmr9958779pfe.4.1691433760331; Mon, 07 Aug 2023 11:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691433760; cv=none; d=google.com; s=arc-20160816; b=eYJL1+m8nItJ3UOo12CTB+2VFMqHVYvuzbJIE1LOziSOtim3g6t/e6rE7GQLiZvNIv YsfLpqTgRCxQsuu00C39+/MrFJHt2C08lwi7X3wNDWLydJOI3BEGumV8rVARqmLrBnGO ol95cwErhwKE9i7cNqoDVv4aHzN79eQtds+etYO8D7Qas9M3MezjlIOEtTIllvvD2BaK 4+MGaJgiXuaA6QKUHSedPPDRTaLgov0YV1l8E9HlQa4rJD95hnarJd8nltuFqPWBlJGj uEAEaY/dSQSNOsLuPElx5dRRJtFYOVa0VqbnI6M4f0UMBbBEdCEqP6lR81/orDlU2F5m tl6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=5kFXDoHF7GQ9pqFFzxyYijKExHAUDXpf8bLNBIMwDQc=; fh=YwR8hmjC2QSif+72cT3/sIS32/1FMEJSAUJ+j+OuTzU=; b=flf/zM3Gvnc+5ipWHLwTanY0LPY6VA0v5QJvQTfhOFIzTad+tEQomsz5BuncWDbPgK a18a/siZOLr3vcfaveqYxBWndTesk3/PLrBepGnW6rLpspAmF+pEjMBEXVU+j4GRUSzH hG51U8ovbOJg0K9Fvc+9hjPIXo6fn62bXJ6JnixmHzYPnGJA3IGhMMwQBOvgOKVBj5fb ELvGy8SfNWppvwm3ajy93HqcMeTz1bUulRtBN/ISp2povy9rAjuvxJ86aPanA52yE/hg rywuJCXwGhpoY7itEbYJSKH0lw610/yW9yVmdyDloXokKo3lT+z0vhzYglfrJfDJbi1O FIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=j4omNGFf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a33-20020a056a001d2100b006872dd77e47si5939858pfx.155.2023.08.07.11.42.28; Mon, 07 Aug 2023 11:42:40 -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=@gmail.com header.s=20221208 header.b=j4omNGFf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbjHGRPo (ORCPT + 99 others); Mon, 7 Aug 2023 13:15:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbjHGRPh (ORCPT ); Mon, 7 Aug 2023 13:15:37 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6144419A2 for ; Mon, 7 Aug 2023 10:15:18 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6b9a2416b1cso4072416a34.2 for ; Mon, 07 Aug 2023 10:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691428517; x=1692033317; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5kFXDoHF7GQ9pqFFzxyYijKExHAUDXpf8bLNBIMwDQc=; b=j4omNGFfHvaJj3AnMmflJ8VRfcki1f4QtDauC81JM+6mpZqIjmSRLFdAJ6sCbCRglX cN37W4uaQFKQ/eK5tQ9P6W/89vbqENJteuDp1IgSM3HiHyrtnaITT0x8NUlkO+4JueNo idOJ/K9S+oDMT8ltHPmUVe3LRjYClIrVFih9B0+554N1Nc0EKktiSjkSrFfp/mz5wKZM Cm53anU91soLJFagVTuQOQZ3Bcp5BO4z1lQTTgdZA5j3yEtJQpgkOHe0rnJAU5cr4jlj B72dgfIj77DUl88zbwYqZp+p9tNuoz07zQJ4tnobJ6BTGbYLhfLfFlxtadlHID0gmoXN vXig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691428517; x=1692033317; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5kFXDoHF7GQ9pqFFzxyYijKExHAUDXpf8bLNBIMwDQc=; b=QFRvO5EI0ZQmJmAb6XGAfwfG6j8EwlKZA5QSC4Mj2VfyipuE1iVWeMFxJ4DxjrnZDa Rlzlc5aD+hUEuq60nsYepPYBG1sv8ybZeUtmZqCYt5TG/skmYN9JMGjmMZgJHx24Wis+ krAotpGZ9OEPV6JepVEXmCTocWvrHDkmfd9qLmiw4WvSgEysJMUEHPU9FEzbEZZd6qze 7+qu1dLp6boCqBy6DLRucO0xIrV2XFZ7XKIQqGyfRQyZ9vhgirEQDv4bLI2m2BtxqGuM 7HSB2ZiPo68wbryXZAZd4v/D+goCeXn9cOI6dHTaTPKtMQd8gM8iIuOMOgP8vfl4Kozn 1L2Q== X-Gm-Message-State: AOJu0YyskxuSKAUNHAigxPPRFQXJ7jvVsn4uqCNbtrk0P+bKwGgLbINh taJvI6Ao0r9vbsu570hGbau/2veqXtMU+G84JK87DA/V X-Received: by 2002:a05:6870:d154:b0:1be:f8d9:7bdd with SMTP id f20-20020a056870d15400b001bef8d97bddmr11390360oac.6.1691428516729; Mon, 07 Aug 2023 10:15:16 -0700 (PDT) MIME-Version: 1.0 References: <20230802062025.11332-1-sunran001@208suo.com> In-Reply-To: <20230802062025.11332-1-sunran001@208suo.com> From: Alex Deucher Date: Mon, 7 Aug 2023 13:15:05 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Clean up errors in display_mode_vba_30.c To: Ran Sun Cc: alexander.deucher@amd.com, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Applied. Thanks! On Wed, Aug 2, 2023 at 2:20=E2=80=AFAM Ran Sun wrote= : > > 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_forma= t_class pixelFormat, enum o > Delay =3D Delay + 1; > // sft > Delay =3D Delay + 1; > - } > - else { > + } else { > // sfr > Delay =3D Delay + 2; > // dsccif > @@ -3489,8 +3488,7 @@ static double TruncToValidBPP( > if (Format =3D=3D dm_n422) { > MinDSCBPP =3D 7; > MaxDSCBPP =3D 2 * DSCInputBitPerComponent - 1.0 /= 16.0; > - } > - else { > + } else { > MinDSCBPP =3D 8; > MaxDSCBPP =3D 3 * DSCInputBitPerComponent - 1.0 /= 16.0; > } > -- > 2.17.1 >