From: Heiko Schocher <hs@nabladev.com>
To: Peter Collingbourne <peter@pcc.me.uk>, Tom Rini <trini@konsulko.com>
Cc: Andrew Goodbody <andrew.goodbody@linaro.org>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Peng Fan <peng.fan@nxp.com>, Yao Zi <me@ziyao.cc>,
u-boot@lists.denx.de, Kyungmin Park <kmpark@infradead.org>
Subject: Re: [PATCH] fs: ubifs: remove dead code
Date: Thu, 14 May 2026 04:50:15 +0200 [thread overview]
Message-ID: <96868c0e-277e-ff6b-8cab-985ec0b91dcb@nabladev.com> (raw)
In-Reply-To: <20260512055008.9357-1-peter@pcc.me.uk>
Hello Peter,
On 12.05.26 07:50, Peter Collingbourne wrote:
> This code is dead because it appears after an infinite loop; remove it.
>
> Fixes: 4c4477c77008 ("fs: ubifs: fix bugs involving symlinks in ubifs_findfile")
Wrong commit ID? I find in current HEAD:
"""
commit d5888d509cc43942ec98d993f2d129f5c8ddc432
Author: Peter Collingbourne <peter@pcc.me.uk>
Date: Tue May 5 03:38:16 2026 -0700
fs: ubifs: fix bugs involving symlinks in ubifs_findfile
"""
> Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
> ---
> fs/ubifs/ubifs.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
> index aafbd01a028..3f2e2037745 100644
> --- a/fs/ubifs/ubifs.c
> +++ b/fs/ubifs/ubifs.c
> @@ -608,9 +608,6 @@ static unsigned long ubifs_findfile(struct super_block *sb, char *filename)
> root_inum = inum;
> name = next;
> }
> -
> - kfree(buf);
> - return 0;
May we need to stay with "return 0;" at the end of the function, as
some source code checking tool will claim if there is none?
Beside of the nitpick:
Reviewed-by: Heiko Schocher <hs@nabladev.com>
If you find time to send a v2 with updated commit ID I would be happy,
else I can fix it when picking up the patch, if okay for you.
Thanks!
bye,
Heiko
--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office@nabladev.com
Geschäftsführer : Stefano Babic
next prev parent reply other threads:[~2026-05-14 2:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 5:50 [PATCH] fs: ubifs: remove dead code Peter Collingbourne
2026-05-14 2:50 ` Heiko Schocher [this message]
2026-05-14 3:08 ` Peter Collingbourne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=96868c0e-277e-ff6b-8cab-985ec0b91dcb@nabladev.com \
--to=hs@nabladev.com \
--cc=andrew.goodbody@linaro.org \
--cc=kmpark@infradead.org \
--cc=me@ziyao.cc \
--cc=patrice.chotard@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=peter@pcc.me.uk \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.