Add missing curly brackets. By chance, the missing brackets didn't alter
the code behavior. Submitted by: Lucius Windschuh
This commit is contained in:
parent
97901c4bc9
commit
ff91cc99dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214917
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user