Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137329207
D32779.id97818.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
520 B
Referenced Files
None
Subscribers
None
D32779.id97818.diff
View Options
Index: sys/dev/pci/pci.c
===================================================================
--- sys/dev/pci/pci.c
+++ sys/dev/pci/pci.c
@@ -4506,10 +4506,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
Sun, Nov 23, 1:04 PM (3 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26014423
Default Alt Text
D32779.id97818.diff (520 B)
Attached To
Mode
D32779: pci: switch logic a little
Attached
Detach File
Event Timeline
Log In to Comment