diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-10 04:21:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-11 02:47:14 -0700 |
commit | 50d36a93dc2c773c9625c62275b88ac936d9c4ba (patch) | |
tree | a64d5a8908da8b9b5e349e60858f4498fb5ea4fc /drivers/net | |
parent | 74b793e1ef79edc49bc031a88d62f1e93fc6b30f (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/vxge/vxge-config.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/vxge/vxge-config.c b/drivers/net/vxge/vxge-config.c index 6b41c884a33..26cde573af4 100644 --- a/drivers/net/vxge/vxge-config.c +++ b/drivers/net/vxge/vxge-config.c @@ -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); } |