diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-08-08 20:42:42 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-08-08 20:42:42 +0000 |
commit | 0b041e8f964ff1c1fb2f09ea38f15eeb45841e42 (patch) | |
tree | 90962f9910bca12199ebb28ec2754c553aa0262a /lib/libc | |
parent | be7768ee547fe4a77c33f19daacc0809cb8a4cf3 (diff) | |
download | FreeBSD-src-0b041e8f964ff1c1fb2f09ea38f15eeb45841e42.zip FreeBSD-src-0b041e8f964ff1c1fb2f09ea38f15eeb45841e42.tar.gz |
Remove variables which are assigned values and never used thereafter.
Found by: LLVM/Clang Static Checker
Approved by: jasone
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 1dc9a73..21504a1 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -2312,7 +2312,6 @@ static arena_chunk_t * arena_chunk_alloc(arena_t *arena) { arena_chunk_t *chunk; - arena_run_t *run; size_t i; if (arena->spare != NULL) { @@ -2337,8 +2336,6 @@ arena_chunk_alloc(arena_t *arena) /* * Initialize the map to contain one maximal free untouched run. */ - run = (arena_run_t *)((uintptr_t)chunk + - (arena_chunk_header_npages << pagesize_2pow)); for (i = 0; i < arena_chunk_header_npages; i++) chunk->map[i].bits = 0; chunk->map[i].bits = arena_maxclass | CHUNK_MAP_ZEROED; @@ -3536,7 +3533,7 @@ arena_new(arena_t *arena) { unsigned i; arena_bin_t *bin; - size_t pow2_size, prev_run_size; + size_t prev_run_size; if (malloc_spin_init(&arena->lock)) return (true); @@ -3583,7 +3580,6 @@ arena_new(arena_t *arena) bin->reg_size = quantum * (i - ntbins + 1); - pow2_size = pow2_ceil(quantum * (i - ntbins + 1)); prev_run_size = arena_bin_run_size_calc(bin, prev_run_size); #ifdef MALLOC_STATS |