From b7ace7f716431bd57e6c5e55f7f996bcc8a2a456 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 26 Feb 2020 18:33:41 +0100 Subject: remove useless nullpointer check posix_memalign(memptr,... is attributed with __attribute__((nonnull)). --- src/malloc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/malloc.c b/src/malloc.c index 4653aa8..92265cb 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -23,10 +23,6 @@ int posix_memalign(void **memptr, size_t alignment, size_t size) { void *out; - if(memptr == NULL) { - return 22; - } - if((alignment % sizeof(void*)) != 0) { return 22; } -- cgit v1.2.3