mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
Delete useless visibility for BARs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d3227df512
commit
b4a1dc03f3
@ -86,7 +86,7 @@ impl VirtioPciCapabilityData {
|
||||
offset,
|
||||
length,
|
||||
option,
|
||||
memory_bar,
|
||||
memory_bar: memory_bar.cloned(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user