Skip to content

Commit

Permalink
Merge pull request #1429 from hermit-os/dead_code
Browse files Browse the repository at this point in the history
fix(cfg): `dead_code`
  • Loading branch information
mkroening authored Oct 24, 2024
2 parents 991cb42 + a3ce2c2 commit 2060d1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ pub const DEFAULT_STACK_SIZE: usize = 65_536;

pub(crate) const USER_STACK_SIZE: usize = 1_048_576;

#[allow(dead_code)]
#[cfg(feature = "pci")]
pub(crate) const VIRTIO_MAX_QUEUE_SIZE: u16 = 2048;
#[allow(dead_code)]
#[cfg(not(feature = "pci"))]
pub(crate) const VIRTIO_MAX_QUEUE_SIZE: u16 = 1024;
#[cfg(any(
all(any(feature = "tcp", feature = "udp"), not(feature = "rtl8139")),
feature = "fuse",
feature = "vsock"
))]
pub(crate) const VIRTIO_MAX_QUEUE_SIZE: u16 = if cfg!(feature = "pci") { 2048 } else { 1024 };

/// Default keep alive interval in milliseconds
#[cfg(feature = "tcp")]
Expand Down

0 comments on commit 2060d1d

Please sign in to comment.