Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2fcb548 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds
Browse files

cxgb4: use kvfree() in t4_free_mem()



Use kvfree() instead of open-coding it.

Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Cc: Hariprasad S <hariprasad@chelsio.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 68c61b93
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1150,10 +1150,7 @@ void *t4_alloc_mem(size_t size)
 */
void t4_free_mem(void *addr)
{
	if (is_vmalloc_addr(addr))
		vfree(addr);
	else
		kfree(addr);
	kvfree(addr);
}

/* Send a Work Request to write the filter at a specified index.  We construct