diff --git a/src/drivers/virtio/transport/pci.rs b/src/drivers/virtio/transport/pci.rs index 6d3461ad4a..4658bde4a1 100644 --- a/src/drivers/virtio/transport/pci.rs +++ b/src/drivers/virtio/transport/pci.rs @@ -232,7 +232,6 @@ impl PciCap { return None; } - // Using "as u32" is safe here as CommonCfg has a defined size smaller 2^31-1 // Drivers MAY do this check. See Virtio specification v1.1. - 4.1.4.1 if self.length < MemLen::from(mem::size_of::() * 8) { error!("Common config of with id {}, does not represent actual structure specified by the standard!", self.id);