Fixed 3 regressions in rev.1.99 (clobbering of the English fix in rev.1.98,

and 2 unformattings).
This commit is contained in:
Bruce Evans 2002-02-26 16:17:45 +00:00
parent d52ccfe321
commit ffe4d2f7c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91308

View file

@ -359,9 +359,10 @@ 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",
printf("%s: %s%d already exists; skipping it\n",
dc->name, dc->name, *unitp);
return (EEXIST);
}