diff options
author | Mark Johnston <markj@FreeBSD.org> | 2024-04-23 16:23:13 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2024-04-24 12:46:41 +0000 |
commit | 8ef2c021822f59a334e3926e8505c8a8e8a3475f (patch) | |
tree | 210e210ebf56aeb5407198cf581bd7adda8539ad | |
parent | 1e607a0753ff93847926a46003fe74087426b580 (diff) | |
download | src-8ef2c021822f59a334e3926e8505c8a8e8a3475f.tar.gz src-8ef2c021822f59a334e3926e8505c8a8e8a3475f.zip |
busdma: uma_zcreate() does not fail
No functional change intended.
MFC after: 1 week
-rw-r--r-- | sys/kern/subr_busdma_bufalloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/subr_busdma_bufalloc.c b/sys/kern/subr_busdma_bufalloc.c index 2cc47b006753..fa7191341db6 100644 --- a/sys/kern/subr_busdma_bufalloc.c +++ b/sys/kern/subr_busdma_bufalloc.c @@ -100,10 +100,6 @@ busdma_bufalloc_create(const char *name, bus_size_t minimum_alignment, bz->size = cursize; bz->umazone = uma_zcreate(bz->name, bz->size, NULL, NULL, NULL, NULL, bz->size - 1, zcreate_flags); - if (bz->umazone == NULL) { - busdma_bufalloc_destroy(ba); - return (NULL); - } if (alloc_func != NULL) uma_zone_set_allocf(bz->umazone, alloc_func); if (free_func != NULL) |