Skip to content

Commit 2b0201a

Browse files
committed
refactor(balloon): remove unused error variants
Remove some error variants that were not used in the code. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 9ad721f commit 2b0201a

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/vmm/src/devices/virtio/balloon/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ const VIRTIO_BALLOON_S_HTLB_PGFAIL: u16 = 9;
6767
/// Balloon device related errors.
6868
#[derive(Debug, thiserror::Error, displaydoc::Display)]
6969
pub enum BalloonError {
70-
/// No balloon device found.
71-
DeviceNotFound,
7270
/// Device not activated yet.
7371
DeviceNotActive,
7472
/// EventFd error: {0}

src/vmm/src/vmm_config/balloon.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,10 @@ type MutexBalloon = Arc<Mutex<Balloon>>;
1616
pub enum BalloonConfigError {
1717
/// No balloon device found.
1818
DeviceNotFound,
19-
/// Device is inactive, check if balloon driver is enabled in guest kernel.
20-
DeviceNotActive,
21-
/// Cannot enable/disable the statistics after boot.
22-
InvalidStatsUpdate,
2319
/// Amount of pages requested is too large.
2420
TooManyPagesRequested,
25-
/// Statistics for the balloon device are not enabled
26-
StatsNotFound,
2721
/// Error creating the balloon device: {0}
2822
CreateFailure(crate::devices::virtio::balloon::BalloonError),
29-
/// Error updating the balloon device configuration: {0}
30-
UpdateFailure(std::io::Error),
3123
/// Firecracker's huge pages support is incompatible with memory ballooning.
3224
HugePages,
3325
}

0 commit comments

Comments
 (0)