Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2021 22:10:36 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c0ea0b498991 - main - Fix "set but not used" in the x86 pci driver.
Message-ID:  <202112052210.1B5MAatR007346@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112052210.1B5MAatR007346>