[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_Pusu-BPRxZnn7YkykbEskL1EUmyJvJbad4AmU+SJjG0w@mail.gmail.com>
Date: Thu, 28 Sep 2023 11:49:52 -0400
From: Alex Deucher <alexdeucher@...il.com>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: alexander.deucher@....com, Xinhui.Pan@....com,
Abaci Robot <abaci@...ux.alibaba.com>,
linux-kernel@...r.kernel.org, amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, christian.koenig@....com
Subject: Re: [PATCH] drm/radeon/kms/atom: Remove redundant code
On Thu, Sep 28, 2023 at 5:46 AM Jiapeng Chong
<jiapeng.chong@...ux.alibaba.com> wrote:
>
> drivers/gpu/drm/radeon/atom.c:396 atom_skip_src_int() warn: ignoring unreachable code.
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6713
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
> ---
> drivers/gpu/drm/radeon/atom.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c
> index ceb6d772ef94..3082d08a06c2 100644
> --- a/drivers/gpu/drm/radeon/atom.c
> +++ b/drivers/gpu/drm/radeon/atom.c
> @@ -393,7 +393,6 @@ static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr)
> (*ptr)++;
> return;
> }
> - return;
I think this should be a break.
Alex
> }
> }
>
> --
> 2.20.1.7.g153144c
>
Powered by blists - more mailing lists