mirror of
https://github.com/opnsense/src.git
synced 2026-03-08 17:20:43 -04: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
1 changed files with 4 additions and 3 deletions
|
|
@ -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