:: commit 4d49354237719df7e80047bc7058663455d742d4

Mintsuki <mintsuki@protonmail.com> — 2026-02-08 16:03

parents: 2cb1c2d109

fs/iso9660: Remove unreachable fallback code after while(true) loop

diff --git a/common/fs/iso9660.s2.c b/common/fs/iso9660.s2.c
index 8c4728cb..9ae1af31 100644
--- a/common/fs/iso9660.s2.c
+++ b/common/fs/iso9660.s2.c
@@ -488,18 +488,6 @@ struct file_handle *iso9660_open(struct volume *vol, const char *path) {
         }
     }
 
-    // Free the last directory buffer if we allocated one (not the cached root)
-    if (!first) {
-        pmm_free(current, current_size);
-    }
-
-    // Fallback path (trailing slash case) - create single extent
-    ret->extents = ext_mem_alloc(sizeof(struct iso9660_extent));
-    ret->extent_count = 1;
-    ret->total_size = next_size;
-    ret->extents[0].LBA = next_sector;
-    ret->extents[0].size = next_size;
-
 setup_handle:;
     struct file_handle *handle = ext_mem_alloc(sizeof(struct file_handle));
 
tab: 248 wrap: offon