All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: ubifs: remove dead code
@ 2026-05-12  5:50 Peter Collingbourne
  2026-05-14  2:50 ` Heiko Schocher
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Collingbourne @ 2026-05-12  5:50 UTC (permalink / raw)
  To: Tom Rini
  Cc: Peter Collingbourne, Andrew Goodbody, Patrice Chotard, Peng Fan,
	Yao Zi, u-boot, Kyungmin Park, Heiko Schocher

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-14  5:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  5:50 [PATCH] fs: ubifs: remove dead code Peter Collingbourne
2026-05-14  2:50 ` Heiko Schocher
2026-05-14  3:08   ` Peter Collingbourne

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.