forked from Minki/linux
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:
parent
74b793e1ef
commit
50d36a93dc
@ -1884,17 +1884,13 @@ void __vxge_hw_mempool_destroy(struct vxge_hw_mempool *mempool)
|
||||
mempool->memblock_size, dma_object);
|
||||
}
|
||||
|
||||
if (mempool->items_arr)
|
||||
vfree(mempool->items_arr);
|
||||
vfree(mempool->items_arr);
|
||||
|
||||
if (mempool->memblocks_dma_arr)
|
||||
vfree(mempool->memblocks_dma_arr);
|
||||
vfree(mempool->memblocks_dma_arr);
|
||||
|
||||
if (mempool->memblocks_priv_arr)
|
||||
vfree(mempool->memblocks_priv_arr);
|
||||
vfree(mempool->memblocks_priv_arr);
|
||||
|
||||
if (mempool->memblocks_arr)
|
||||
vfree(mempool->memblocks_arr);
|
||||
vfree(mempool->memblocks_arr);
|
||||
|
||||
vfree(mempool);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user