From: Peter Collingbourne Date: Tue, 12 May 2026 05:50:08 +0000 (-0700) Subject: fs: ubifs: remove dead code X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0646ee0ed86bd2809e10cff1f8ca3310ad7bf33b;p=thirdparty%2Fu-boot.git fs: ubifs: remove dead code This code is dead because it appears after an infinite loop; remove it. Fixes: d5888d509cc4 ("fs: ubifs: fix bugs involving symlinks in ubifs_findfile") Signed-off-by: Peter Collingbourne Reviewed-by: Heiko Schocher hs: corrected the commit ID --- 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)