summaryrefslogtreecommitdiff
path: root/src/modules/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2013-01-24 02:23:59 +0000
committerCedric BAIL <cedric.bail@free.fr>2013-01-24 02:23:59 +0000
commit3cfd345a91b5c5708cb48ed9c0f0038ab72628fa (patch)
treec94d12a3c7133736797deac18eca6d69c4158e93 /src/modules/eina
parentf64ab2c8dd215e1d03e98d435cae2792b512a058 (diff)
efl/eina: simplify mempool logic.
SVN revision: 83194
Diffstat (limited to 'src/modules/eina')
-rw-r--r--src/modules/eina/mp/chained_pool/eina_chained_mempool.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/eina/mp/chained_pool/eina_chained_mempool.c b/src/modules/eina/mp/chained_pool/eina_chained_mempool.c
index a9be2845f1..869633afd9 100644
--- a/src/modules/eina/mp/chained_pool/eina_chained_mempool.c
+++ b/src/modules/eina/mp/chained_pool/eina_chained_mempool.c
@@ -113,7 +113,6 @@ _eina_chained_mp_pool_new(Chained_Mempool *pool)
113{ 113{
114 Chained_Pool *p; 114 Chained_Pool *p;
115 unsigned char *ptr; 115 unsigned char *ptr;
116 unsigned int alignof;
117 116
118 eina_error_set(0); 117 eina_error_set(0);
119 p = malloc(pool->alloc_size); 118 p = malloc(pool->alloc_size);
@@ -137,8 +136,7 @@ _eina_chained_mp_pool_new(Chained_Mempool *pool)
137 } 136 }
138#endif 137#endif
139 138
140 alignof = eina_mempool_alignof(sizeof(Chained_Pool)); 139 ptr = (unsigned char *)(p + 1);
141 ptr = (unsigned char *)p + alignof;
142 p->usage = 0; 140 p->usage = 0;
143 p->base = NULL; 141 p->base = NULL;
144 142