lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_OK0VXCNpA-aix2hCvBJ04R1FXhem+Q0eGpvtWu9kna=Q@mail.gmail.com>
Date:   Mon, 7 Aug 2023 13:06:22 -0400
From:   Alex Deucher <alexdeucher@...il.com>
To:     Ran Sun <sunran001@...suo.com>
Cc:     alexander.deucher@....com, dri-devel@...ts.freedesktop.org,
        amd-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/amd/display: Clean up errors in color_gamma.c

Applied.  Thanks!

On Tue, Aug 1, 2023 at 10:40 PM Ran Sun <sunran001@...suo.com> wrote:
>
> Fix the following errors reported by checkpatch:
>
> ERROR: trailing whitespace
> ERROR: else should follow close brace '}'
>
> Signed-off-by: Ran Sun <sunran001@...suo.com>
> ---
>  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/drivers/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 = 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.
> +                * full precision to avoid error accumulation.
>                  */
>                 if ((cal_buffer->buffer_index >= PRECISE_LUT_REGION_START &&
>                         cal_buffer->buffer_index <= PRECISE_LUT_REGION_END) ||
> @@ -379,8 +379,7 @@ static struct fixed31_32 translate_from_linear_space(
>                 scratch_1 = dc_fixpt_sub(scratch_1, args->a2);
>
>                 return scratch_1;
> -       }
> -       else
> +       } else
>                 return dc_fixpt_mul(args->arg, args->a1);
>  }
>
> --
> 2.17.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ