git: c0ea0b498991 - main - Fix "set but not used" in the x86 pci driver.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Dec 2021 22:10:36 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=c0ea0b498991e003499c70e9cb25583842d3059e
commit c0ea0b498991e003499c70e9cb25583842d3059e
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:09:24 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-05 22:10:16 +0000
Fix "set but not used" in the x86 pci driver.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/x86/pci/pci_bus.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/x86/pci/pci_bus.c b/sys/x86/pci/pci_bus.c
index 0487c8475f43..5f51f41ef8d3 100644
--- a/sys/x86/pci/pci_bus.c
+++ b/sys/x86/pci/pci_bus.c
@@ -510,11 +510,9 @@ legacy_pcib_attach(device_t dev)
{
#ifdef __HAVE_PIR
device_t pir;
-#endif
int bus;
bus = pcib_get_bus(dev);
-#ifdef __HAVE_PIR
/*
* Look for a PCI BIOS interrupt routing table as that will be
* our method of routing interrupts if we have one.