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 <mvaralar@redhat.com>
This commit is contained in:
Matias Ezequiel Vara Larsen 2024-03-15 15:06:36 +01:00 committed by Stefano Garzarella
parent 2f3b0b1f38
commit 8ca48ad867

View File

@ -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")]