cloud-hypervisor/pci/src
Rob Bradford 6ccd32c904 pci: Remove manual range checks
error: manual `Range::contains` implementation
   --> pci/src/vfio.rs:948:12
    |
948 |         if (reg_idx >= PCI_CONFIG_BAR0_INDEX && reg_idx < PCI_CONFIG_BAR0_INDEX + BAR_NUMS)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `(PCI_CONFIG_BAR0_INDEX..PCI_CONFIG_BAR0_INDEX + BAR_NUMS).contains(&reg_idx)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-01-04 13:46:37 +01:00
..
bus.rs pci, virtio-devices: Extend barrier returning through PCI code 2020-12-17 11:23:53 +00:00
configuration.rs pci: Remove manual range checks 2021-01-04 13:46:37 +01:00
device.rs pci, virtio-devices: Extend barrier returning through PCI code 2020-12-17 11:23:53 +00:00
lib.rs devices, vm-device: Move BusDevice and Bus into vm-device 2020-09-10 09:35:38 +01:00
msi.rs pci: Enable GSI routing (MSI type) for AArch64 2020-07-14 14:34:54 +01:00
msix.rs pci: msix: Fix masking/enabling semantics 2020-09-24 22:29:16 +02:00
vfio.rs pci: Remove manual range checks 2021-01-04 13:46:37 +01:00