summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 86581649b4c6..a49583e24a46 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2641,7 +2641,8 @@ ttymalloc(struct tty *tp)
if (tp)
return(tp);
tp = malloc(sizeof *tp, M_TTYS, M_WAITOK | M_ZERO);
- ttyregister(tp);
+ tp->t_timeout = -1;
+ SLIST_INSERT_HEAD(&tty_list, tp, t_list);
return (tp);
}
@@ -2657,13 +2658,6 @@ ttyfree(struct tty *tp)
}
#endif /* 0 */
-void
-ttyregister(struct tty *tp)
-{
- tp->t_timeout = -1;
- SLIST_INSERT_HEAD(&tty_list, tp, t_list);
-}
-
static int
sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
{