Skip to content

Commit

Permalink
fix(virtio): remove unused PciError::BadCapPtr
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Jun 10, 2024
1 parent 102ebba commit 37c4351
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/drivers/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ pub(crate) mod error {
General(u16),
NoBar(u16),
NoCapPtr(u16),
BadCapPtr(u16),
NoVirtioCaps(u16),
}
}
1 change: 0 additions & 1 deletion src/drivers/virtio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pub mod error {
PciError::General(id) => write!(f, "Driver failed to initialize device with id: {id:#x}. Due to unknown reasosn!"),
PciError::NoBar(id ) => write!(f, "Driver failed to initialize device with id: {id:#x}. Reason: No BAR's found."),
PciError::NoCapPtr(id) => write!(f, "Driver failed to initialize device with id: {id:#x}. Reason: No Capabilities pointer found."),
PciError::BadCapPtr(id) => write!(f, "Driver failed to initialize device with id: {id:#x}. Reason: Malformed Capabilities pointer."),
PciError::NoVirtioCaps(id) => write!(f, "Driver failed to initialize device with id: {id:#x}. Reason: No Virtio capabilities were found."),
},
VirtioError::DevNotSupported(id) => write!(f, "Device with id {id:#x} not supported."),
Expand Down

0 comments on commit 37c4351

Please sign in to comment.