Delete useless visibility for BARs

This commit is contained in:
Cautreoxit
2025-03-25 19:37:41 +08:00
committed by Tate, Hongliang Tian
parent d3227df512
commit b4a1dc03f3
4 changed files with 12 additions and 39 deletions

View File

@ -86,7 +86,7 @@ impl VirtioPciCapabilityData {
offset,
length,
option,
memory_bar,
memory_bar: memory_bar.cloned(),
}
}
}

View File

@ -95,7 +95,7 @@ impl VirtioPciLegacyTransport {
};
info!("[Virtio]: Found device:{:?}", device_type);
let config_bar = common_device.bar_manager().bar(0).unwrap();
let config_bar = common_device.bar_manager().bar(0).clone().unwrap();
let mut num_queues = 0u16;
while num_queues < u16::MAX {