From 0a7bc0f4c3234054608514c701d810b7c983d485 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 5 May 2024 22:17:34 -0400 Subject: kernel: pci: Remove unused variable Signed-off-by: Ian Moffett --- sys/dev/pci/pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 71e4ddc..4985dd8 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -130,13 +130,11 @@ pci_device_exists(uint8_t bus, uint8_t slot, uint8_t func) static void pci_set_device_info(struct pci_device *dev) { - uint32_t classrev, cmdstatus; + uint32_t classrev; dev->vendor_id = pci_readl(dev, PCIREG_VENDOR_ID) & __MASK(16); dev->device_id = pci_readl(dev, PCIREG_DEVICE_ID) & __MASK(16); - classrev = pci_readl(dev, PCIREG_CLASSREV); - cmdstatus = pci_readl(dev, PCIREG_CMDSTATUS); dev->pci_class = PCIREG_CLASS(classrev); dev->pci_subclass = PCIREG_SUBCLASS(classrev); -- cgit v1.2.3