Add missing curly brackets. By chance, the missing brackets didn't alter

the code behavior.

Submitted by:	Lucius Windschuh
This commit is contained in:
Jaakko Heinonen 2010-11-07 14:28:01 +00:00
parent 97901c4bc9
commit ff91cc99dd

View File

@ -752,7 +752,7 @@ make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw, int unit,
return (res);
}
dev = newdev(devsw, unit, dev_new);
if ((dev->si_flags & SI_NAMED) == 0)
if ((dev->si_flags & SI_NAMED) == 0) {
res = prep_devname(dev, fmt, ap);
if (res != 0) {
if ((flags & MAKEDEV_CHECKNAME) == 0) {
@ -766,6 +766,7 @@ make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw, int unit,
devfs_free(dev);
}
return (res);
}
}
if (flags & MAKEDEV_REF)
dev_refl(dev);