Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145992858
D48045.1779074373.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
470 B
Referenced Files
None
Subscribers
None
D48045.1779074373.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 3:19 AM (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28712896
Default Alt Text
D48045.1779074373.diff (470 B)
Attached To
Mode
D48045: pci: Use a switch statement when reading ivars
Attached
Detach File
Event Timeline
Log In to Comment