From 24c386b577f126bce761c7288e987ae93c36aa88 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 3 Oct 2003 16:44:52 +0000 Subject: Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need for separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me... --- sys/arch/mvme88k/dev/dart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/arch/mvme88k/dev/dart.c') diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c index ae71f410d75..0d355417c49 100644 --- a/sys/arch/mvme88k/dev/dart.c +++ b/sys/arch/mvme88k/dev/dart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dart.c,v 1.23 2003/09/28 14:26:25 miod Exp $ */ +/* $OpenBSD: dart.c,v 1.24 2003/10/03 16:44:50 miod Exp $ */ /* * Mach Operating System @@ -833,7 +833,6 @@ dartopen (dev, flag, mode, p) tp = dart->tty; } else { tp = dart->tty = ttymalloc(); - tty_attach(tp); simple_lock_init(&dart->t_lock); } -- cgit v1.2.3