summaryrefslogtreecommitdiff
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-08-20 08:31:58 +0000
committerEd Schouten <ed@FreeBSD.org>2008-08-20 08:31:58 +0000
commitbc093719ca478fe10b938cef32c30b528042cbcd (patch)
treebd0c08a66997254385160ce71ea32029b99f99f9 /sys/kern/kern_conf.c
parentb14f19cf9742655c453d9c1dd672393c31080af4 (diff)
downloadsrc-test2-bc093719ca478fe10b938cef32c30b528042cbcd.tar.gz
src-test2-bc093719ca478fe10b938cef32c30b528042cbcd.zip
Notes
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 4c10871ca387..409652f75310 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
#include <sys/poll.h>
#include <sys/sx.h>
#include <sys/ctype.h>
-#include <sys/tty.h>
#include <sys/ucred.h>
#include <sys/taskqueue.h>
#include <machine/stdarg.h>
@@ -611,14 +610,6 @@ prep_cdevsw(struct cdevsw *devsw)
devsw->d_kqfilter = dead_kqfilter;
}
- if (devsw->d_flags & D_TTY) {
- if (devsw->d_ioctl == NULL) devsw->d_ioctl = ttyioctl;
- if (devsw->d_read == NULL) devsw->d_read = ttyread;
- if (devsw->d_write == NULL) devsw->d_write = ttywrite;
- if (devsw->d_kqfilter == NULL) devsw->d_kqfilter = ttykqfilter;
- if (devsw->d_poll == NULL) devsw->d_poll = ttypoll;
- }
-
if (devsw->d_flags & D_NEEDGIANT) {
if (devsw->d_gianttrick == NULL) {
memcpy(dsw2, devsw, sizeof *dsw2);
@@ -692,11 +683,9 @@ make_dev_credv(int flags, struct cdevsw *devsw, int minornr,
}
dev->si_flags |= SI_NAMED;
-#ifdef MAC
if (cr != NULL)
dev->si_cred = crhold(cr);
else
-#endif
dev->si_cred = NULL;
dev->si_uid = uid;
dev->si_gid = gid;