mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
vm_memory: Remove unused error type
This error hasn't been used for a while and now generates an unused warning. Change-Id: Ica4a26332966e12dff29f01c0e110c6a1262b23c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2947798 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
41daa354c7
commit
6a1c64e1df
1 changed files with 0 additions and 5 deletions
|
@ -26,7 +26,6 @@ use crate::guest_address::GuestAddress;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
DescriptorChainOverflow,
|
|
||||||
InvalidGuestAddress(GuestAddress),
|
InvalidGuestAddress(GuestAddress),
|
||||||
InvalidOffset(u64),
|
InvalidOffset(u64),
|
||||||
MemoryAccess(GuestAddress, MmapError),
|
MemoryAccess(GuestAddress, MmapError),
|
||||||
|
@ -50,10 +49,6 @@ impl Display for Error {
|
||||||
use self::Error::*;
|
use self::Error::*;
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
DescriptorChainOverflow => write!(
|
|
||||||
f,
|
|
||||||
"the combined length of all the buffers in a DescriptorChain is too large"
|
|
||||||
),
|
|
||||||
InvalidGuestAddress(addr) => write!(f, "invalid guest address {}", addr),
|
InvalidGuestAddress(addr) => write!(f, "invalid guest address {}", addr),
|
||||||
InvalidOffset(addr) => write!(f, "invalid offset {}", addr),
|
InvalidOffset(addr) => write!(f, "invalid offset {}", addr),
|
||||||
MemoryAccess(addr, e) => {
|
MemoryAccess(addr, e) => {
|
||||||
|
|
Loading…
Reference in a new issue