summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2018-03-04 02:31:42 +0500
committerVladislav Grishenko <themiron@mail.ru>2018-03-04 02:42:02 +0500
commitca152efa0c0b1a3a2cecfcdc0a72959e670b9f45 (patch)
tree9b7d0fdc157a59a0b241320ef3b5ace597d23aea
parent939e952452dd856a574a1d78c15181a93a593996 (diff)
downloadaccel-ppp-ca152efa0c0b1a3a2cecfcdc0a72959e670b9f45.tar.gz
accel-ppp-ca152efa0c0b1a3a2cecfcdc0a72959e670b9f45.zip
fix build error with VALGRIND defined
-rw-r--r--accel-pppd/triton/mempool.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/accel-pppd/triton/mempool.c b/accel-pppd/triton/mempool.c
index ecc91f34..ac444c5c 100644
--- a/accel-pppd/triton/mempool.c
+++ b/accel-pppd/triton/mempool.c
@@ -107,9 +107,6 @@ void __export *mempool_alloc(mempool_t *pool)
__sync_sub_and_fetch(&triton_stat.mempool_available, size);
return it->ptr;
-#ifdef VALGRIND
- }
-#endif
}
spin_unlock(&p->lock);
@@ -123,7 +120,7 @@ void __export *mempool_alloc(mempool_t *pool)
mmap_ptr += size;
spin_unlock(&mmap_lock);
__sync_sub_and_fetch(&triton_stat.mempool_available, size);
- } else {
+ } else {
it = _malloc(size);
__sync_add_and_fetch(&triton_stat.mempool_allocated, size);
}