Skip to content

Commit

Permalink
fix(virtio/pci): remove obsolete comment
Browse files Browse the repository at this point in the history
This comment was made obsolete by
68effc9#diff-aec828209d10fe04d7a8a6f063279edaa909f90ecabc93f062445611e4f63972L380

Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 29, 2024
1 parent f9a4168 commit 9e2478d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/drivers/virtio/transport/pci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<CommonCfg>() * 8) {
error!("Common config of with id {}, does not represent actual structure specified by the standard!", self.id);
Expand Down

0 comments on commit 9e2478d

Please sign in to comment.