]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
vxge: No need for check vfree() pointer.
authorFigo.zhang <figo1802@gmail.com>
Wed, 10 Jun 2009 04:21:55 +0000 (04:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2009 09:47:14 +0000 (02:47 -0700)
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>
drivers/net/vxge/vxge-config.c

index 6b41c884a3372ce6a30b3c1203c816633f02df95..26cde573af430cfa3e66de4fccf5a324f73e333a 100644 (file)
@@ -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);
 }