diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-18 15:52:46 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-18 16:50:49 +0100 |
commit | 53d2db31c6e68c43c59a47333c16f18658ce9ea4 (patch) | |
tree | fe73588de7026d5e56ec3a21eab34d5a39217fbf /lib/mm/memlock.c | |
parent | 01760967b45a68f1645b797e69b28403a7823ee2 (diff) | |
download | lvm2-53d2db31c6e68c43c59a47333c16f18658ce9ea4.tar.gz |
cleanup: drop unused var
Diffstat (limited to 'lib/mm/memlock.c')
-rw-r--r-- | lib/mm/memlock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index e771075ce..c5358dc1f 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -134,12 +134,11 @@ static void _touch_memory(void *mem, size_t size) static void _allocate_memory(void) { #ifndef VALGRIND_POOL - void *stack_mem, *temp_malloc_mem; + void *stack_mem; struct rlimit limit; int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; char *areas[max_areas]; - /* Check if we could preallocate requested stack */ if ((getrlimit (RLIMIT_STACK, &limit) == 0) && ((_size_stack * 2) < limit.rlim_cur) && |