summaryrefslogtreecommitdiff
path: root/sys/kern/subr_eventhandler.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-02-23 19:32:29 +0000
committerSam Leffler <sam@FreeBSD.org>2005-02-23 19:32:29 +0000
commit15ecf3968dc21643843673f255c1c2be497b8fa3 (patch)
tree94c142b92e3181610e474109801da706b62bdcf7 /sys/kern/subr_eventhandler.c
parent7bb53beeda0fa80805ae552916b1010478875c96 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_eventhandler.c')
-rw-r--r--sys/kern/subr_eventhandler.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/subr_eventhandler.c b/sys/kern/subr_eventhandler.c
index 599bef4fd558..885c01344e87 100644
--- a/sys/kern/subr_eventhandler.c
+++ b/sys/kern/subr_eventhandler.c
@@ -166,7 +166,6 @@ eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag)
if (list->el_runcount == 0) {
CTR2(KTR_EVH, "%s: removing all items from \"%s\"", __func__,
list->el_name);
- TAILQ_REMOVE(&list->el_entries, ep, ee_link);
while (!TAILQ_EMPTY(&list->el_entries)) {
ep = TAILQ_FIRST(&list->el_entries);
TAILQ_REMOVE(&list->el_entries, ep, ee_link);