summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 14:59:09 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-30 19:44:59 -0700
commit68c61b93e89fef36a36086c4e686fe413d2caab7 (patch)
tree78c49dca43599fbd3b6f25330397b580ce447698 /drivers/net/ethernet
parent200f1ce3656b8f466f74756677cea1b5e2aa851a (diff)
downloadop-kernel-dev-68c61b93e89fef36a36086c4e686fe413d2caab7.zip
op-kernel-dev-68c61b93e89fef36a36086c4e686fe413d2caab7.tar.gz
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/ethernet')
-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 b0cbb2b..76684dc 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);
}
/*
OpenPOWER on IntegriCloud