summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2006-01-04 08:22:39 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2006-01-04 08:22:39 +0000
commit246b8d448a183b3d861974183b3de7fdf97c7039 (patch)
tree42d49e98027fc7a898026c930d630a08cd7f73a5
parent8a07d88d9f260421217cd644089059f16e620ea1 (diff)
Notes
-rw-r--r--sys/kern/tty.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 94a3d4070a9b..1babc3d52d41 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -253,6 +253,7 @@ static u_char const char_type[] = {
*/
static TAILQ_HEAD(, tty) tty_list = TAILQ_HEAD_INITIALIZER(tty_list);
static struct mtx tty_list_mutex;
+MTX_SYSINIT(tty_list, &tty_list_mutex, "ttylist", MTX_DEF);
static struct unrhdr *tty_unit;
@@ -2828,12 +2829,6 @@ ttyrel(struct tty *tp)
struct tty *
ttymalloc(struct tty *tp)
{
- static int once;
-
- if (!once) {
- mtx_init(&tty_list_mutex, "ttylist", NULL, MTX_DEF);
- once++;
- }
if (tp) {
/*