aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_event.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-02 05:26:19 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-02 05:26:19 +0000
commit9dfffbc9598866bbdaa52f07f0b922826ee01b59 (patch)
tree1bf8776b50cf5ac65209a5a5487d095b22469b8e /sys/geom/geom_event.c
parent6be365253d1c268f4445362c0203beb06eb5df4c (diff)
downloadsrc-9dfffbc9598866bbdaa52f07f0b922826ee01b59.tar.gz
src-9dfffbc9598866bbdaa52f07f0b922826ee01b59.zip
Get rid of trivial function g_destroy_event().
Notes
Notes: svn path=/head/; revision=114490
Diffstat (limited to 'sys/geom/geom_event.c')
-rw-r--r--sys/geom/geom_event.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c
index c7ba1c38fd39..cf5974946aba 100644
--- a/sys/geom/geom_event.c
+++ b/sys/geom/geom_event.c
@@ -147,13 +147,6 @@ g_orphan_register(struct g_provider *pp)
#endif
}
-static void
-g_destroy_event(struct g_event *ep)
-{
-
- g_free(ep);
-}
-
static int
one_event(void)
{
@@ -189,7 +182,7 @@ one_event(void)
ep->flag |= EV_DONE;
wakeup(ep);
} else {
- g_destroy_event(ep);
+ g_free(ep);
}
g_pending_events--;
if (g_pending_events == 0)
@@ -234,7 +227,7 @@ g_cancel_event(void *ref)
ep->flag |= EV_CANCELED;
wakeup(ep);
} else {
- g_destroy_event(ep);
+ g_free(ep);
}
break;
}
@@ -314,7 +307,7 @@ g_waitfor_event(g_event_t *func, void *arg, int flag, ...)
while (!(ep->flag & EV_DONE));
if (ep->flag & EV_CANCELED)
error = EAGAIN;
- g_destroy_event(ep);
+ g_free(ep);
return (error);
}