mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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
1 changed files with 4 additions and 8 deletions
|
@ -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 a new issue