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) ...@@ -668,7 +668,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
INSIST(mpctx->items != NULL); INSIST(mpctx->items != NULL);
item = mpctx->items; item = mpctx->items;
for (count = 0 ; count < n ; count++) { for (count = 0 ; count < n ; count++) {
item = ((element *)item)->next; item = item->next;
INSIST(item != NULL); INSIST(item != NULL);
} }
...@@ -678,7 +678,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n) ...@@ -678,7 +678,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
*/ */
LOCK(&mctx->lock); LOCK(&mctx->lock);
do { do {
next = ((element *)item)->next; next = item->next;
mem_putunlocked(mctx, item, mpctx->size); mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0); INSIST(mpctx->freecount > 0);
mpctx->freecount--; mpctx->freecount--;
...@@ -708,7 +708,7 @@ mempool_releaseall(isc_mempool_t *mpctx) ...@@ -708,7 +708,7 @@ mempool_releaseall(isc_mempool_t *mpctx)
item = mpctx->items; item = mpctx->items;
do { do {
next = ((element *)item)->next; next = item->next;
mem_putunlocked(mctx, item, mpctx->size); mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0); INSIST(mpctx->freecount > 0);
mpctx->freecount--; 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