Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149517448
D32779.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.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
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)
Attached To
Mode
D32779: pci: switch logic a little
Attached
Detach File
Event Timeline
Log In to Comment