Merge branch 'remove_broken_assertion' into 'master'

Remove an incorrect assertion preventing access to PCI extended capabilities

See merge request redox-os/drivers!191
This commit is contained in:
Jeremy Soller
2024-07-21 19:38:32 +00:00
-2
View File
@@ -310,8 +310,6 @@ impl Pcie {
"multiple segments not yet implemented"
);
assert_eq!(offset & 0xFC, offset, "pci offset is not aligned");
let bus_addr = self.bus_addr(address.segment(), address.bus())?;
Some(unsafe { bus_addr.add(Self::bus_addr_offset_in_dwords(address, offset)) })
}