mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue