From nobody Sun Feb 8 05:19:53 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAEE2C001DF for ; Wed, 2 Aug 2023 02:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbjHBCkI (ORCPT ); Tue, 1 Aug 2023 22:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjHBCkF (ORCPT ); Tue, 1 Aug 2023 22:40:05 -0400 Received: from out28-135.mail.aliyun.com (out28-135.mail.aliyun.com [115.124.28.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D861199F for ; Tue, 1 Aug 2023 19:40:03 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4055942|-1;CH=blue;DM=|OVERLOAD|false|;DS=CONTINUE|ham_alarm|0.00105794-0.000121474-0.998821;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047199;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6N4oZg_1690943996; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6N4oZg_1690943996) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 10:39:58 +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 color_gamma.c Date: Wed, 2 Aug 2023 02:39:55 +0000 Message-Id: <20230802023955.10014-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: trailing whitespace ERROR: else should follow close brace '}' Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/display/modules/color/color_gamma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c b/driv= ers/gpu/drm/amd/display/modules/color/color_gamma.c index 67a062af3ab0..ff8e5708735d 100644 --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.c +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.c @@ -359,7 +359,7 @@ static struct fixed31_32 translate_from_linear_space( scratch_1 =3D dc_fixpt_add(one, args->a3); /* In the first region (first 16 points) and in the * region delimited by START/END we calculate with - * full precision to avoid error accumulation.=20 + * full precision to avoid error accumulation. */ if ((cal_buffer->buffer_index >=3D PRECISE_LUT_REGION_START && cal_buffer->buffer_index <=3D PRECISE_LUT_REGION_END) || @@ -379,8 +379,7 @@ static struct fixed31_32 translate_from_linear_space( scratch_1 =3D dc_fixpt_sub(scratch_1, args->a2); =20 return scratch_1; - } - else + } else return dc_fixpt_mul(args->arg, args->a1); } =20 --=20 2.17.1