mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 12:09:48 +00:00
load partition_map
only once
This commit is contained in:
parent
9a9e617c35
commit
e9e2ecf2dd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user