diff options
author | phk <phk@FreeBSD.org> | 2003-05-02 05:26:19 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-02 05:26:19 +0000 |
commit | a49f8acd23caa028ffb27e1b715edb38c88b4ce3 (patch) | |
tree | 1bf8776b50cf5ac65209a5a5487d095b22469b8e /sys/geom | |
parent | da0d4657d38d92512bd969d1b9909e5a263f2bb8 (diff) | |
download | FreeBSD-src-a49f8acd23caa028ffb27e1b715edb38c88b4ce3.zip FreeBSD-src-a49f8acd23caa028ffb27e1b715edb38c88b4ce3.tar.gz |
Get rid of trivial function g_destroy_event().
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_event.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index c7ba1c3..cf59749 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); } |