Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167356676
D32779.id103346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
483 B
Referenced Files
None
Subscribers
None
D32779.id103346.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 22, 6:24 AM (3 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37067306
Default Alt Text
D32779.id103346.diff (483 B)
Attached To
Mode
D32779: pci: switch logic a little
Attached
Detach File
Event Timeline
Log In to Comment