summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxge
diff options
context:
space:
mode:
authorFigo.zhang <figo1802@gmail.com>2009-06-10 04:21:55 +0000
committerDavid S. Miller <davem@davemloft.net>2009-06-11 02:47:14 -0700
commit50d36a93dc2c773c9625c62275b88ac936d9c4ba (patch)
treea64d5a8908da8b9b5e349e60858f4498fb5ea4fc /drivers/net/vxge
parent74b793e1ef79edc49bc031a88d62f1e93fc6b30f (diff)
downloadlinux-stable-50d36a93dc2c773c9625c62275b88ac936d9c4ba.tar.gz
linux-stable-50d36a93dc2c773c9625c62275b88ac936d9c4ba.tar.bz2
linux-stable-50d36a93dc2c773c9625c62275b88ac936d9c4ba.zip
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/vxge')
-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);
}