diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-01-10 09:00:41 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2018-01-10 09:00:41 +0000 |
commit | 77f89b8f5df5439c5135e95eb4a3236465a6c58d (patch) | |
tree | 4a58926fc232a7eeef78dcc3cbd7410fd87c0053 /sys/dev/pci | |
parent | 67f02cf2ba9e928b50d6503d979161dca9206d3b (diff) |
Make azalia_free_dmamem() void, as its return value is not used. From
Michael W. Bombardieri, thanks.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/azalia.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index a08d1fbb02d..856d8f8f999 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.239 2017/12/23 01:44:24 jsg Exp $ */ +/* $OpenBSD: azalia.c,v 1.240 2018/01/10 09:00:40 ratchov Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -211,7 +211,7 @@ int azalia_get_response(azalia_t *, uint32_t *); void azalia_rirb_kick_unsol_events(void *); void azalia_rirb_intr(azalia_t *); int azalia_alloc_dmamem(azalia_t *, size_t, size_t, azalia_dma_t *); -int azalia_free_dmamem(const azalia_t *, azalia_dma_t*); +void azalia_free_dmamem(const azalia_t *, azalia_dma_t*); int azalia_codec_init(codec_t *); int azalia_codec_delete(codec_t *); @@ -1331,17 +1331,16 @@ free: return err; } -int +void azalia_free_dmamem(const azalia_t *az, azalia_dma_t* d) { if (d->addr == NULL) - return 0; + return; bus_dmamap_unload(az->dmat, d->map); bus_dmamap_destroy(az->dmat, d->map); bus_dmamem_unmap(az->dmat, d->addr, d->size); bus_dmamem_free(az->dmat, d->segments, 1); d->addr = NULL; - return 0; } int |