projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b793e
)
vxge: No need for check vfree() pointer.
author
Figo.zhang
<figo1802@gmail.com>
Wed, 10 Jun 2009 04:21:55 +0000
(
04:21
+0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/vxge/vxge-config.c
b/drivers/net/vxge/vxge-config.c
index 6b41c884a3372ce6a30b3c1203c816633f02df95..26cde573af430cfa3e66de4fccf5a324f73e333a 100644
(file)
--- 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);
}