aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-05 22:17:34 -0400
committerIan Moffett <ian@osmora.org>2024-05-05 22:17:34 -0400
commit0a7bc0f4c3234054608514c701d810b7c983d485 (patch)
tree06926dd445ef3d7488415b942a3d2a99cecf3b88 /sys/dev/pci
parentc8c1ac6bedcc57ecc0dfcaa5561ef420e7b686c0 (diff)
kernel: pci: Remove unused variable
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 1 insertions, 3 deletions
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);