summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFigo.zhang <figo1802@gmail.com>2009-06-10 08:21:55 +0400
committerDavid S. Miller <davem@davemloft.net>2009-06-11 13:47:14 +0400
commit50d36a93dc2c773c9625c62275b88ac936d9c4ba (patch)
treea64d5a8908da8b9b5e349e60858f4498fb5ea4fc
parent74b793e1ef79edc49bc031a88d62f1e93fc6b30f (diff)
downloadlinux-50d36a93dc2c773c9625c62275b88ac936d9c4ba.tar.xz
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>
-rw-r--r--drivers/net/vxge/vxge-config.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/vxge/vxge-config.c b/drivers/net/vxge/vxge-config.c
index 6b41c884a337..26cde573af43 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);
}