]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
fs: ubifs: remove dead code
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 12 May 2026 05:50:08 +0000 (22:50 -0700)
committerHeiko Schocher <hs@nabladev.com>
Mon, 18 May 2026 07:19:56 +0000 (09:19 +0200)
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 <peter@pcc.me.uk>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
hs: corrected the commit ID

fs/ubifs/ubifs.c

index aafbd01a02867591fe7ae4af62485f419464010f..3f2e20377458c966a399fcc1384f1eab5c1381bd 100644 (file)
@@ -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)