From 8ca48ad8671ba244557a3e70f80db17fdb263e7d Mon Sep 17 00:00:00 2001 From: Matias Ezequiel Vara Larsen Date: Fri, 15 Mar 2024 15:06:36 +0100 Subject: [PATCH] sound: remove unused errors This commits removes error that were unused. These errors correspond with the accesing to descriptors which is now done through Reader/Writer modules. Signed-off-by: Matias Ezequiel Vara Larsen --- vhost-device-sound/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vhost-device-sound/src/lib.rs b/vhost-device-sound/src/lib.rs index ea49e7f..5cf788f 100644 --- a/vhost-device-sound/src/lib.rs +++ b/vhost-device-sound/src/lib.rs @@ -168,14 +168,8 @@ pub enum Error { NoMemoryConfigured, #[error("Invalid virtio_snd_hdr size, expected: {0}, found: {1}")] UnexpectedSoundHeaderSize(usize, u32), - #[error("Received unexpected write only descriptor at index {0}")] - UnexpectedWriteOnlyDescriptor(usize), #[error("Received unexpected readable descriptor at index {0}")] - UnexpectedReadableDescriptor(usize), - #[error("Invalid descriptor count {0}")] UnexpectedDescriptorCount(usize), - #[error("Invalid descriptor size, expected: {0}, found: {1}")] - UnexpectedDescriptorSize(usize, u32), #[error("Protocol or device error: {0}")] Stream(stream::Error), #[error("Stream with id {0} not found")]