Page MenuHomeFreeBSD

D32779.diff
No OneTemporary

D32779.diff

diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -4551,10 +4551,10 @@
line = 0;
while (resource_find_dev(&line, name, &unit, "at", NULL) == 0) {
resource_string_value(name, unit, "at", &at);
- if (strcmp(at, me1) != 0 && strcmp(at, me2) != 0)
- continue; /* No match, try next candidate */
- *unitp = unit;
- return;
+ if (strcmp(at, me1) == 0 || strcmp(at, me2) == 0) {
+ *unitp = unit;
+ return;
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 26, 12:00 AM (21 m, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30353430
Default Alt Text
D32779.diff (483 B)

Event Timeline