mark alloc_aligned_simple error path unlikely

This commit is contained in:
Daniel Micay 2021-05-12 20:41:46 -04:00
parent f1cdc1e484
commit c9820b6e37

View File

@ -1304,7 +1304,7 @@ static int alloc_aligned(unsigned arena, void **memptr, size_t alignment, size_t
static void *alloc_aligned_simple(unsigned arena, size_t alignment, size_t size) { static void *alloc_aligned_simple(unsigned arena, size_t alignment, size_t size) {
void *ptr; void *ptr;
int ret = alloc_aligned(arena, &ptr, alignment, size, 1); int ret = alloc_aligned(arena, &ptr, alignment, size, 1);
if (ret) { if (unlikely(ret)) {
errno = ret; errno = ret;
return NULL; return NULL;
} }