Commit 50d36a93 authored by Figo.zhang's avatar Figo.zhang Committed by David S. Miller

vxge: No need for check vfree() pointer.

vfree() does its own 'NULL' check, so no need for check before
calling it.
Signed-off-by: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74b793e1
......@@ -1884,16 +1884,12 @@ void __vxge_hw_mempool_destroy(struct vxge_hw_mempool *mempool)
mempool->memblock_size, dma_object);
}
if (mempool->items_arr)
vfree(mempool->items_arr);
if (mempool->memblocks_dma_arr)
vfree(mempool->memblocks_dma_arr);
if (mempool->memblocks_priv_arr)
vfree(mempool->memblocks_priv_arr);
if (mempool->memblocks_arr)
vfree(mempool->memblocks_arr);
vfree(mempool);
......
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