From 9e2478d906756db82f66a35e286087b1b6020e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Mon, 29 Apr 2024 18:02:13 +0200 Subject: [PATCH] fix(virtio/pci): remove obsolete comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This comment was made obsolete by https://github.com/hermit-os/kernel/commit/68effc939613c4818f94b377070f1b463565e0fd#diff-aec828209d10fe04d7a8a6f063279edaa909f90ecabc93f062445611e4f63972L380 Signed-off-by: Martin Kröning --- src/drivers/virtio/transport/pci.rs | 1 - 1 file changed, 1 deletion(-) 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);