virtio-devices: rename two variables

They are used. No need to start their names with an underscore.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2024-04-27 01:42:38 +00:00
committed by Wei Liu
parent d99f294281
commit d2e798944a

View File

@@ -1186,9 +1186,9 @@ impl PciDevice for VirtioPciDevice {
.contains(&o) => .contains(&o) =>
{ {
#[cfg(feature = "sev_snp")] #[cfg(feature = "sev_snp")]
for (_event, _addr) in self.ioeventfds(_base) { for (event, addr) in self.ioeventfds(_base) {
if _addr == _base + offset { if addr == _base + offset {
_event.write(1).unwrap(); event.write(1).unwrap();
} }
} }
// Handled with ioeventfds. // Handled with ioeventfds.