:: commit 10e0ca6aaaac590d3403451e6995ff29c891d2e2

mintsuki <mintsuki@protonmail.com> — 2024-05-07 18:05

parents: 903662feaf

disk: BIOS: Remove useless disk_read_sectors() call

diff --git a/common/drivers/disk.s2.c b/common/drivers/disk.s2.c
index 2097fc0b..56a041c5 100644
--- a/common/drivers/disk.s2.c
+++ b/common/drivers/disk.s2.c
@@ -262,10 +262,6 @@ void disk_create_index(void) {
             continue;
         }
 
-        if (disk_read_sectors(block, xfer_buf, 0, 1) != DISK_SUCCESS) {
-            continue;
-        }
-
         block->is_optical = is_removable;
 
         if (block->is_optical) {
tab: 248 wrap: offon