mark alloc_aligned_simple error path unlikely

pull/138/head
Daniel Micay 2021-05-12 20:41:46 -04:00
parent f1cdc1e484
commit c9820b6e37
1 changed files with 1 additions and 1 deletions

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;
} }