git: 7a8b49047659 - stable/14 - busdma: uma_zcreate() does not fail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 May 2024 13:26:46 UTC
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=7a8b49047659bb8e06660de9ddb47d1059899d89 commit 7a8b49047659bb8e06660de9ddb47d1059899d89 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-04-23 16:23:13 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-05-02 13:25:08 +0000 busdma: uma_zcreate() does not fail No functional change intended. MFC after: 1 week (cherry picked from commit 8ef2c021822f59a334e3926e8505c8a8e8a3475f) --- 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)