diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 23:59:09 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 04:44:59 +0200 |
commit | 68c61b93e89fef36a36086c4e686fe413d2caab7 (patch) | |
tree | 78c49dca43599fbd3b6f25330397b580ce447698 /drivers/net | |
parent | kernel/relay.c: use kvfree() in relay_free_page_array() (diff) | |
download | linux-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.c | 5 |
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); } /* |