summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-11-07 14:28:01 +0000
committerjh <jh@FreeBSD.org>2010-11-07 14:28:01 +0000
commit5a3e494e92f825533651ec833a6b056ef1e62be1 (patch)
tree2989887a43b3f547fd0ab8e2e54b389e4a30bf4b /sys/kern
parent0dd0d98b3b5888444caed5de36d34f1b9b393bf5 (diff)
downloadFreeBSD-src-5a3e494e92f825533651ec833a6b056ef1e62be1.zip
FreeBSD-src-5a3e494e92f825533651ec833a6b056ef1e62be1.tar.gz
Add missing curly brackets. By chance, the missing brackets didn't alter
the code behavior. Submitted by: Lucius Windschuh
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 509ce775f..897a4c0 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -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);
OpenPOWER on IntegriCloud