vxge: No need for check vfree() pointer.

vfree() does its own 'NULL' check, so no need for check before
calling it.

Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Figo.zhang 2009-06-10 04:21:55 +00:00 committed by David S. Miller
parent 74b793e1ef
commit 50d36a93dc

View File

@ -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);