mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-27 23:48:59 +00:00
load partition_map only once
This commit is contained in:
@@ -78,7 +78,7 @@ static struct {
|
|||||||
} blk_info;
|
} blk_info;
|
||||||
|
|
||||||
static dev_t setup_block() {
|
static dev_t setup_block() {
|
||||||
const auto partition_map = load_partition_map();
|
static const auto partition_map = load_partition_map();
|
||||||
if (dev_list.empty())
|
if (dev_list.empty())
|
||||||
collect_devices(partition_map);
|
collect_devices(partition_map);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user