Skip to content

Commit

Permalink
sound: remove unused errors
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MatiasVara authored and stefano-garzarella committed Jul 22, 2024
1 parent 2f3b0b1 commit 8ca48ad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vhost-device-sound/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 8ca48ad

Please sign in to comment.