aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>1999-01-08 17:31:30 +0000
committerEivind Eklund <eivind@FreeBSD.org>1999-01-08 17:31:30 +0000
commit5526d2d920eb17b1507499f35b275b486f7fe8d0 (patch)
treec3aa8110c730b536d4b76b776fd65a60d1a70818 /sys/kern/tty.c
parent95ddc5daa5374332a4bc16c64c498099fa823adf (diff)
downloadsrc-5526d2d920eb17b1507499f35b275b486f7fe8d0.tar.gz
src-5526d2d920eb17b1507499f35b275b486f7fe8d0.zip
Notes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 4d7dfacb865c..1adf784ddfe1 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.109 1998/12/07 07:59:20 ache Exp $
+ * $Id: tty.c,v 1.110 1998/12/08 10:22:07 bde Exp $
*/
/*-
@@ -1310,10 +1310,8 @@ ttrstrt(tp_arg)
struct tty *tp;
int s;
-#ifdef DIAGNOSTIC
- if (tp_arg == NULL)
- panic("ttrstrt");
-#endif
+ KASSERT(tp_arg != NULL, ("ttrstrt"));
+
tp = tp_arg;
s = spltty();