mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop unused var
This commit is contained in:
parent
01760967b4
commit
53d2db31c6
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user