diff options
Diffstat (limited to 'drivers/net/vxge/vxge-config.c')
-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 | } |