From 55e08edd7f418c3667a12280ce66bcdfad173790 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 7 Mar 2023 15:40:16 -0800 Subject: [PATCH] vmm: Remove unnecessary parentheses (beta 1.69 clippy check) Signed-off-by: Bo Chen --- vmm/src/pci_segment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/pci_segment.rs b/vmm/src/pci_segment.rs index c1ea6215d..0f988f1da 100644 --- a/vmm/src/pci_segment.rs +++ b/vmm/src/pci_segment.rs @@ -159,7 +159,7 @@ impl PciSegment { // There are 32 devices on the PCI bus, let's assign them an IRQ. for i in 0..32 { - pci_irq_slots[i] = irqs[(i % num_irqs)]; + pci_irq_slots[i] = irqs[i % num_irqs]; } Ok(())