Page MenuHomeFreeBSD

D48045.diff
No OneTemporary

D48045.diff

diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c
--- a/sys/dev/pci/pci_host_generic.c
+++ b/sys/dev/pci/pci_host_generic.c
@@ -369,13 +369,11 @@
struct generic_pcie_core_softc *sc;
sc = device_get_softc(dev);
-
- if (index == PCIB_IVAR_BUS) {
+ switch (index) {
+ case PCIB_IVAR_BUS:
*result = sc->bus_start;
return (0);
- }
-
- if (index == PCIB_IVAR_DOMAIN) {
+ case PCIB_IVAR_DOMAIN:
*result = sc->ecam;
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 9:46 AM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15354863
Default Alt Text
D48045.diff (470 B)

Event Timeline