diff --git a/sys/kern/subr_callback.c b/sys/kern/subr_callback.c index a3853287a120..ff5f6dbcf004 100644 --- a/sys/kern/subr_callback.c +++ b/sys/kern/subr_callback.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_callback.c,v 1.2 2006/05/27 07:42:42 yamt Exp $ */ +/* $NetBSD: subr_callback.c,v 1.3 2006/06/21 17:16:00 drochner Exp $ */ /*- * Copyright (c)2006 YAMAMOTO Takashi, @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_callback.c,v 1.2 2006/05/27 07:42:42 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_callback.c,v 1.3 2006/06/21 17:16:00 drochner Exp $"); #include #include @@ -40,12 +40,9 @@ void callback_head_init(struct callback_head *ch) { + memset(ch, 0, sizeof(struct callback_head)); simple_lock_init(&ch->ch_lock); TAILQ_INIT(&ch->ch_q); - ch->ch_next = NULL; - ch->ch_nentries = 0; - ch->ch_running = 0; - ch->ch_flags = 0; } void