summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-24 08:30:57 +0000
committerphk <phk@FreeBSD.org>2004-09-24 08:30:57 +0000
commitc67c50f50e3cd69316e0f460cae9326107b33862 (patch)
tree1df5c806fd1b3e80e25580d89a3809ddf5102026 /sys
parent6ee26d135f9f0031511789d70decdebbefaf1146 (diff)
downloadFreeBSD-src-c67c50f50e3cd69316e0f460cae9326107b33862.zip
FreeBSD-src-c67c50f50e3cd69316e0f460cae9326107b33862.tar.gz
Remove the cdevsw() function which is now unused.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_conf.c8
-rw-r--r--sys/sys/conf.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 53d006b..770f4b6 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -232,14 +232,6 @@ no_poll(struct cdev *dev __unused, int events, struct thread *td __unused)
#define no_dump (dumper_t *)enodev
-struct cdevsw *
-devsw(struct cdev *dev)
-{
- if (dev->si_devsw != NULL)
- return (dev->si_devsw);
- return (&dead_cdevsw);
-}
-
/*
* struct cdev * and u_dev_t primitives
*/
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 5e173e7..e416e1b 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -260,7 +260,6 @@ int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **
int count_dev(struct cdev *_dev);
void destroy_dev(struct cdev *_dev);
-struct cdevsw *devsw(struct cdev *_dev);
struct cdevsw *dev_refthread(struct cdev *_dev);
void dev_relthread(struct cdev *_dev);
const char *devtoname(struct cdev *_dev);
OpenPOWER on IntegriCloud