summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 1babc3d..363c31c 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2827,17 +2827,10 @@ ttyrel(struct tty *tp)
* tty_open().
*/
struct tty *
-ttymalloc(struct tty *tp)
+ttyalloc()
{
+ struct tty *tp;
- if (tp) {
- /*
- * XXX: Either this argument should go away, or we should
- * XXX: require it and do a ttyrel(tp) here and allocate
- * XXX: a new tty. For now do nothing.
- */
- return(tp);
- }
tp = malloc(sizeof *tp, M_TTYS, M_WAITOK | M_ZERO);
mtx_init(&tp->t_mtx, "tty", NULL, MTX_DEF);
@@ -2862,13 +2855,6 @@ ttymalloc(struct tty *tp)
return (tp);
}
-struct tty *
-ttyalloc()
-{
-
- return (ttymalloc(NULL));
-}
-
static void
ttypurge(struct cdev *dev)
{
OpenPOWER on IntegriCloud