mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
Fixed 3 regressions in rev.1.99 (clobbering of the English fix in rev.1.98,
and 2 unformattings).
This commit is contained in:
parent
d52ccfe321
commit
ffe4d2f7c7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91308
|
@ -359,10 +359,11 @@ devclass_alloc_unit(devclass_t dc, int *unitp)
|
|||
/* If we were given a wired unit number, check for existing device */
|
||||
/* XXX imp XXX */
|
||||
if (unit != -1) {
|
||||
if (unit >= 0 && unit < dc->maxunit && dc->devices[unit]) {
|
||||
if (unit >= 0 && unit < dc->maxunit &&
|
||||
dc->devices[unit] != NULL) {
|
||||
if (bootverbose)
|
||||
printf("%s: %s%d already exists, skipping it\n",
|
||||
dc->name, dc->name, *unitp);
|
||||
printf("%s: %s%d already exists; skipping it\n",
|
||||
dc->name, dc->name, *unitp);
|
||||
return (EEXIST);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue