From bc9e7b689e933038c5c9ff0af8d6b181c942ceec Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 31 May 2003 20:18:23 +0000 Subject: Remove return after panic. Found by: FlexeLint --- sys/kern/kern_conf.c | 2 -- 1 file changed, 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); -- cgit v1.1