diff --git a/proc/alloc.c b/proc/alloc.c index 0a616cec..4f495e5d 100644 --- a/proc/alloc.c +++ b/proc/alloc.c @@ -15,9 +15,8 @@ void *xcalloc(void *pointer, int size) { if (!(ret = calloc(1, size))) { fprintf(stderr, "xcalloc: allocation error, size = %d\n", size); exit(1); - } else { - return ret; } + return ret; } void *xmalloc(unsigned int size) {