git: 8ef2c021822f - main - busdma: uma_zcreate() does not fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Apr 2024 13:17:16 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ef2c021822f59a334e3926e8505c8a8e8a3475f
commit 8ef2c021822f59a334e3926e8505c8a8e8a3475f
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-23 16:23:13 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-04-24 12:46:41 +0000
busdma: uma_zcreate() does not fail
No functional change intended.
MFC after: 1 week
---
sys/kern/subr_busdma_bufalloc.c | 4 ----
1 file changed, 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)