summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-07-01 00:59:09 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 05:44:59 +0300
commit68c61b93e89fef36a36086c4e686fe413d2caab7 (patch)
tree78c49dca43599fbd3b6f25330397b580ce447698 /drivers/net
parent200f1ce3656b8f466f74756677cea1b5e2aa851a (diff)
downloadlinux-68c61b93e89fef36a36086c4e686fe413d2caab7.tar.xz
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);
}
/*