Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108389316
D48045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
470 B
Referenced Files
None
Subscribers
None
D48045.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
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)
Attached To
Mode
D48045: pci: Use a switch statement when reading ivars
Attached
Detach File
Event Timeline
Log In to Comment