diff options
author | jh <jh@FreeBSD.org> | 2010-11-07 14:28:01 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-11-07 14:28:01 +0000 |
commit | 5a3e494e92f825533651ec833a6b056ef1e62be1 (patch) | |
tree | 2989887a43b3f547fd0ab8e2e54b389e4a30bf4b /sys/kern | |
parent | 0dd0d98b3b5888444caed5de36d34f1b9b393bf5 (diff) | |
download | FreeBSD-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.c | 3 |
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); |