Commit 68c61b93 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

cxgb3: use kvfree() in cxgb_free_mem()

Use kvfree() instead of open-coding it.
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Cc: Santosh Raspatur <santosh@chelsio.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 200f1ce3
...@@ -1169,10 +1169,7 @@ void *cxgb_alloc_mem(unsigned long size) ...@@ -1169,10 +1169,7 @@ void *cxgb_alloc_mem(unsigned long size)
*/ */
void cxgb_free_mem(void *addr) void cxgb_free_mem(void *addr)
{ {
if (is_vmalloc_addr(addr)) kvfree(addr);
vfree(addr);
else
kfree(addr);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment