1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: drop unused var

This commit is contained in:
Zdenek Kabelac 2014-11-18 15:52:46 +01:00
parent 01760967b4
commit 53d2db31c6

View File

@ -134,12 +134,11 @@ static void _touch_memory(void *mem, size_t size)
static void _allocate_memory(void) static void _allocate_memory(void)
{ {
#ifndef VALGRIND_POOL #ifndef VALGRIND_POOL
void *stack_mem, *temp_malloc_mem; void *stack_mem;
struct rlimit limit; struct rlimit limit;
int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
char *areas[max_areas]; char *areas[max_areas];
/* Check if we could preallocate requested stack */ /* Check if we could preallocate requested stack */
if ((getrlimit (RLIMIT_STACK, &limit) == 0) && if ((getrlimit (RLIMIT_STACK, &limit) == 0) &&
((_size_stack * 2) < limit.rlim_cur) && ((_size_stack * 2) < limit.rlim_cur) &&