diff options
author | Figo.zhang <figo1802@gmail.com> | 2009-06-10 00:21:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-11 05:47:14 -0400 |
commit | 50d36a93dc2c773c9625c62275b88ac936d9c4ba (patch) | |
tree | a64d5a8908da8b9b5e349e60858f4498fb5ea4fc /drivers/net/vxge | |
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/vxge')
-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 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) | |||
1884 | mempool->memblock_size, dma_object); | 1884 | mempool->memblock_size, dma_object); |
1885 | } | 1885 | } |
1886 | 1886 | ||
1887 | if (mempool->items_arr) | 1887 | vfree(mempool->items_arr); |
1888 | vfree(mempool->items_arr); | ||
1889 | 1888 | ||
1890 | if (mempool->memblocks_dma_arr) | 1889 | vfree(mempool->memblocks_dma_arr); |
1891 | vfree(mempool->memblocks_dma_arr); | ||
1892 | 1890 | ||
1893 | if (mempool->memblocks_priv_arr) | 1891 | vfree(mempool->memblocks_priv_arr); |
1894 | vfree(mempool->memblocks_priv_arr); | ||
1895 | 1892 | ||
1896 | if (mempool->memblocks_arr) | 1893 | vfree(mempool->memblocks_arr); |
1897 | vfree(mempool->memblocks_arr); | ||
1898 | 1894 | ||
1899 | vfree(mempool); | 1895 | vfree(mempool); |
1900 | } | 1896 | } |