From f57814332a69bebc40e25e6537a3c08fc9e18f97 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 14 Sep 2019 01:41:38 +0200 Subject: Move data deduplication from fstree code to data writer Signed-off-by: David Oberhollenzer --- mkfs/mkfs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mkfs') diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index fda9831..0c4e9a5 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -36,10 +36,7 @@ static int pack_files(data_writer_t *data, fstree_t *fs, options_t *opt) if (set_working_dir(opt)) return -1; - while (fs->files != NULL) { - fi = fs->files; - fs->files = fi->next; - + for (fi = fs->files; fi != NULL; fi = fi->next) { if (!opt->quiet) printf("packing %s\n", fi->input_file); -- cgit v1.2.3