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) =>
{
#[cfg(feature = "sev_snp")]
for (_event, _addr) in self.ioeventfds(_base) {
if _addr == _base + offset {
_event.write(1).unwrap();
for (event, addr) in self.ioeventfds(_base) {
if addr == _base + offset {
event.write(1).unwrap();
}
}
// Handled with ioeventfds.