2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00

cxgb4: use kvfree() in t4_free_mem()

Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Cc: Hariprasad S <hariprasad@chelsio.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Pekka Enberg 2015-06-30 14:59:12 -07:00 committed by Linus Torvalds
parent 68c61b93e8
commit d2fcb5486a

View File

@ -1150,10 +1150,7 @@ void *t4_alloc_mem(size_t size)
*/ */
void t4_free_mem(void *addr) void t4_free_mem(void *addr)
{ {
if (is_vmalloc_addr(addr)) kvfree(addr);
vfree(addr);
else
kfree(addr);
} }
/* Send a Work Request to write the filter at a specified index. We construct /* Send a Work Request to write the filter at a specified index. We construct