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 <[email protected]>
---
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