diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 20:18:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 20:18:23 +0000 |
commit | bc9e7b689e933038c5c9ff0af8d6b181c942ceec (patch) | |
tree | ee73af69b3bea2ae10ac8f6c32f6b0b9a3425f52 | |
parent | 11faebdb1af7128503b8b90390486634ee32bdb0 (diff) | |
download | FreeBSD-src-bc9e7b689e933038c5c9ff0af8d6b181c942ceec.zip FreeBSD-src-bc9e7b689e933038c5c9ff0af8d6b181c942ceec.tar.gz |
Remove return after panic.
Found by: FlexeLint
-rw-r--r-- | sys/kern/kern_conf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index d3e150a..d1f88b9 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -317,7 +317,6 @@ make_dev(struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, const printf( "WARNING: Driver mistake: repeat make_dev(\"%s\")\n", dev->si_name); panic("don't do that"); - return (dev); } va_start(ap, fmt); i = vsnrprintf(dev->__si_namebuf, sizeof dev->__si_namebuf, 32, fmt, ap); @@ -402,7 +401,6 @@ destroy_dev(dev_t dev) printf( "WARNING: Driver mistake: destroy_dev on %d/%d\n", major(dev), minor(dev)); panic("don't do that"); - return; } devfs_destroy(dev); |