Commit 608b132b authored by Michael Graff's avatar Michael Graff
Browse files

remove unnessary casts

parent 7ab0e69f
......@@ -668,7 +668,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
INSIST(mpctx->items != NULL);
item = mpctx->items;
for (count = 0 ; count < n ; count++) {
item = ((element *)item)->next;
item = item->next;
INSIST(item != NULL);
}
......@@ -678,7 +678,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
*/
LOCK(&mctx->lock);
do {
next = ((element *)item)->next;
next = item->next;
mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0);
mpctx->freecount--;
......@@ -708,7 +708,7 @@ mempool_releaseall(isc_mempool_t *mpctx)
item = mpctx->items;
do {
next = ((element *)item)->next;
next = item->next;
mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0);
mpctx->freecount--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment