mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
busdma: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
1e607a0753
commit
8ef2c02182
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue