mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-04 03:54:24 +03:00
drivers/disk: Simplify overly convoluted code to invalidate collision unique sector
This commit is contained in:
parent
4e666fd9a9
commit
78d2907ce9
@ -569,13 +569,8 @@ static void find_unique_sectors(void) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Invalidate collision
|
||||
for (size_t j = 0; j < volume_index_i; j++) {
|
||||
if (volume_index[j] != collision) {
|
||||
continue;
|
||||
}
|
||||
volume_index[j]->unique_sector_valid = false;
|
||||
}
|
||||
// Invalidate collision's unique sector
|
||||
collision->unique_sector_valid = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user