mark alloc_aligned_simple error path unlikely
parent
f1cdc1e484
commit
c9820b6e37
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue