summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 23:59:09 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 04:44:59 +0200
commit68c61b93e89fef36a36086c4e686fe413d2caab7 (patch)
tree78c49dca43599fbd3b6f25330397b580ce447698 /drivers/net
parentkernel/relay.c: use kvfree() in relay_free_page_array() (diff)
downloadlinux-68c61b93e89fef36a36086c4e686fe413d2caab7.tar.xz
linux-68c61b93e89fef36a36086c4e686fe413d2caab7.zip
cxgb3: use kvfree() in cxgb_free_mem()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Cc: Santosh Raspatur <santosh@chelsio.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
index b0cbb2b7fd48..76684dcb874c 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
@@ -1169,10 +1169,7 @@ void *cxgb_alloc_mem(unsigned long size)
*/
void cxgb_free_mem(void *addr)
{
- if (is_vmalloc_addr(addr))
- vfree(addr);
- else
- kfree(addr);
+ kvfree(addr);
}
/*