From 3c26e9b741b24df3600009719d08b2a13aee8be7 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Mon, 8 Aug 2022 12:08:07 -0700 Subject: [PATCH] virtio-devices: Drop unused 'queue_evts' from VirtioCommon Signed-off-by: Bo Chen --- virtio-devices/src/device.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/virtio-devices/src/device.rs b/virtio-devices/src/device.rs index f6004c49f..c09adbb2a 100644 --- a/virtio-devices/src/device.rs +++ b/virtio-devices/src/device.rs @@ -219,7 +219,6 @@ pub struct VirtioCommon { pub acked_features: u64, pub kill_evt: Option, pub interrupt_cb: Option>, - pub queue_evts: Option>, pub pause_evt: Option, pub paused: Arc, pub paused_sync: Option>, @@ -278,16 +277,6 @@ impl VirtioCommon { // but clone it to pass into the thread. self.interrupt_cb = Some(interrupt_cb.clone()); - let mut tmp_queue_evts: Vec = Vec::new(); - for (_, _, queue_evt) in queues.iter() { - // Save the queue EventFD as we need to return it on reset - // but clone it to pass into the thread. - tmp_queue_evts.push(queue_evt.try_clone().map_err(|e| { - error!("failed to clone queue EventFd: {}", e); - ActivateError::BadActivate - })?); - } - self.queue_evts = Some(tmp_queue_evts); Ok(()) }