load partition_map only once

This commit is contained in:
LoveSy 2024-08-13 08:15:58 +08:00 committed by John Wu
parent 9a9e617c35
commit e9e2ecf2dd

View File

@ -78,7 +78,7 @@ static struct {
} blk_info;
static dev_t setup_block() {
const auto partition_map = load_partition_map();
static const auto partition_map = load_partition_map();
if (dev_list.empty())
collect_devices(partition_map);