diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-08 04:50:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-08 04:50:51 +0000 |
commit | 70ffd7d0d523dd7095b66c63af15b967fde19e8e (patch) | |
tree | 9cf7220ff4af62247beafed66bdc067d63f51147 /libc/stdlib/malloc-standard | |
parent | aaf517325a362caab297db739c3f386265627f67 (diff) |
Bernhard Fischer says: get rid of local ret variable
Diffstat (limited to 'libc/stdlib/malloc-standard')
-rw-r--r-- | libc/stdlib/malloc-standard/free.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |