All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Collingbourne <peter@pcc.me.uk>
To: Tom Rini <trini@konsulko.com>
Cc: Peter Collingbourne <peter@pcc.me.uk>,
	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>,
	Heiko Schocher <hs@nabladev.com>
Subject: [PATCH] fs: ubifs: remove dead code
Date: Mon, 11 May 2026 22:50:08 -0700	[thread overview]
Message-ID: <20260512055008.9357-1-peter@pcc.me.uk> (raw)

This code is dead because it appears after an infinite loop; remove it.

Fixes: 4c4477c77008 ("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;
 }
 
 int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
-- 
2.54.0


             reply	other threads:[~2026-05-12  8:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12  5:50 Peter Collingbourne [this message]
2026-05-14  2:50 ` [PATCH] fs: ubifs: remove dead code Heiko Schocher
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=20260512055008.9357-1-peter@pcc.me.uk \
    --to=peter@pcc.me.uk \
    --cc=andrew.goodbody@linaro.org \
    --cc=hs@nabladev.com \
    --cc=kmpark@infradead.org \
    --cc=me@ziyao.cc \
    --cc=patrice.chotard@foss.st.com \
    --cc=peng.fan@nxp.com \
    --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.