diff options
author | phk <phk@FreeBSD.org> | 1999-11-29 20:50:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-29 20:50:58 +0000 |
commit | 70250fd70ac2d05e56947ff5ffb0548fc9a039c3 (patch) | |
tree | 6a8e411c64c1f40413f4d190388e7fde005ee826 | |
parent | 85af5ac7442ae6e352426ffc1180ec931251d4df (diff) | |
download | FreeBSD-src-70250fd70ac2d05e56947ff5ffb0548fc9a039c3.zip FreeBSD-src-70250fd70ac2d05e56947ff5ffb0548fc9a039c3.tar.gz |
Remove the now unused chrtoblk() function.
-rw-r--r-- | sys/kern/kern_conf.c | 17 | ||||
-rw-r--r-- | sys/sys/conf.h | 1 | ||||
-rw-r--r-- | sys/sys/linedisc.h | 1 |
3 files changed, 0 insertions, 19 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 0400a15..02687c2 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -74,23 +74,6 @@ devfs_remove_t *devfs_remove_hook; static int free_devt; SYSCTL_INT(_debug, OID_AUTO, free_devt, CTLFLAG_RW, &free_devt, 0, ""); -/* - * Routine to convert from character to block device number. - * - * A minimal stub routine can always return NODEV. - */ -dev_t -chrtoblk(dev_t dev) -{ - struct cdevsw *cd; - - if((cd = devsw(dev)) != NULL) { - if (cd->d_bmaj != -1) - return(makebdev(cd->d_bmaj,minor(dev))); - } - return(NODEV); -} - struct cdevsw * devsw(dev_t dev) { diff --git a/sys/sys/conf.h b/sys/sys/conf.h index ba051d1..e192b7c 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -258,7 +258,6 @@ DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE) int cdevsw_add __P((struct cdevsw *new)); int cdevsw_remove __P((struct cdevsw *old)); -dev_t chrtoblk __P((dev_t dev)); void destroy_dev __P((dev_t dev)); struct cdevsw *devsw __P((dev_t dev)); const char *devtoname __P((dev_t dev)); diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index ba051d1..e192b7c 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -258,7 +258,6 @@ DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE) int cdevsw_add __P((struct cdevsw *new)); int cdevsw_remove __P((struct cdevsw *old)); -dev_t chrtoblk __P((dev_t dev)); void destroy_dev __P((dev_t dev)); struct cdevsw *devsw __P((dev_t dev)); const char *devtoname __P((dev_t dev)); |