From 70ffd7d0d523dd7095b66c63af15b967fde19e8e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 8 Feb 2006 04:50:51 +0000 Subject: Bernhard Fischer says: get rid of local ret variable --- libc/stdlib/malloc-standard/free.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc-standard/free.c b/libc/stdlib/malloc-standard/free.c index cfc937c60..9ffe51304 100644 --- a/libc/stdlib/malloc-standard/free.c +++ b/libc/stdlib/malloc-standard/free.c @@ -401,13 +401,11 @@ void free(void* mem) */ else { - int ret; size_t offset = p->prev_size; av->n_mmaps--; av->mmapped_mem -= (size + offset); - ret = munmap((char*)p - offset, size + offset); /* munmap returns non-zero on failure */ - assert(ret == 0); + assert(munmap((char*)p - offset, size + offset) == 0); } UNLOCK; } -- cgit v1.2.3