diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-10-03 16:44:52 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-10-03 16:44:52 +0000 |
commit | 24c386b577f126bce761c7288e987ae93c36aa88 (patch) | |
tree | 99166e0d499a2be11543cc5dd9774c63a12466eb /sys/arch/mvme68k/dev/zs.c | |
parent | e43c66ff4e929d0beb6716fb882523dc136b8c0c (diff) |
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...
Diffstat (limited to 'sys/arch/mvme68k/dev/zs.c')
-rw-r--r-- | sys/arch/mvme68k/dev/zs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c index 3b91f2cac17..3c42abdb6c2 100644 --- a/sys/arch/mvme68k/dev/zs.c +++ b/sys/arch/mvme68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.13 2003/06/02 05:09:14 deraadt Exp $ */ +/* $OpenBSD: zs.c,v 1.14 2003/10/03 16:44:50 miod Exp $ */ /* * Copyright (c) 2000 Steve Murphree, Jr. @@ -364,7 +364,6 @@ zsopen(dev, flag, mode, p) zp = &sc->sc_zs[zsside(dev)]; if (zp->tty == NULL) { zp->tty = ttymalloc(); - tty_attach(zp->tty); zs_ttydef(zp); if (minor(dev) < NZSLINE) zs_tty[minor(dev)] = zp->tty; |