Skip to content

Commit

Permalink
cxgb4: use kvfree() in t4_free_mem()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <[email protected]>
Cc: Hariprasad S <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
penberg authored and torvalds committed Jul 1, 2015
1 parent 68c61b9 commit d2fcb54
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2fcb54

Please sign in to comment.