Page MenuHomeFreeBSD

D31381.diff
No OneTemporary

D31381.diff

diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -1638,15 +1638,15 @@
/* Unwired device, find the next available slot for it */
unit = 0;
for (unit = 0;; unit++) {
+ /* If this device slot is already in use, skip it. */
+ if (unit < dc->maxunit && dc->devices[unit] != NULL)
+ continue;
+
/* If there is an "at" hint for a unit then skip it. */
if (resource_string_value(dc->name, unit, "at", &s) ==
0)
continue;
- /* If this device slot is already in use, skip it. */
- if (unit < dc->maxunit && dc->devices[unit] != NULL)
- continue;
-
break;
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 9:59 AM (7 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16193922
Default Alt Text
D31381.diff (666 B)

Event Timeline