diff options
author | glebius <glebius@FreeBSD.org> | 2014-07-11 13:58:48 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-07-11 13:58:48 +0000 |
commit | 023659773927cae58bfbeb48e8e94f566ec515b4 (patch) | |
tree | 849fcbce78615f2da6c5ba1bcd0072572fb8a39b /sys/dev/hatm | |
parent | 7abc3b4099a6b2bf5e0f1deaafbf0c0aab7a3a6a (diff) | |
download | FreeBSD-src-023659773927cae58bfbeb48e8e94f566ec515b4.zip FreeBSD-src-023659773927cae58bfbeb48e8e94f566ec515b4.tar.gz |
All mbuf external free functions never fail, so let them be void.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r-- | sys/dev/hatm/if_hatm_intr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/hatm/if_hatm_intr.c b/sys/dev/hatm/if_hatm_intr.c index 5220fe5..87e0532 100644 --- a/sys/dev/hatm/if_hatm_intr.c +++ b/sys/dev/hatm/if_hatm_intr.c @@ -261,7 +261,7 @@ hatm_mbuf_page_alloc(struct hatm_softc *sc, u_int group) /* * Free an mbuf and put it onto the free list. */ -static int +static void hatm_mbuf0_free(struct mbuf *m, void *buf, void *args) { struct hatm_softc *sc = args; @@ -271,9 +271,8 @@ hatm_mbuf0_free(struct mbuf *m, void *buf, void *args) ("freeing unused mbuf %x", c->hdr.flags)); c->hdr.flags &= ~MBUF_USED; hatm_ext_free(&sc->mbuf_list[0], (struct mbufx_free *)c); - return (EXT_FREE_OK); } -static int +static void hatm_mbuf1_free(struct mbuf *m, void *buf, void *args) { struct hatm_softc *sc = args; @@ -283,7 +282,6 @@ hatm_mbuf1_free(struct mbuf *m, void *buf, void *args) ("freeing unused mbuf %x", c->hdr.flags)); c->hdr.flags &= ~MBUF_USED; hatm_ext_free(&sc->mbuf_list[1], (struct mbufx_free *)c); - return (EXT_FREE_OK); } static void |