diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 23:59:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-07-01 04:44:59 +0200 |
commit | d2fcb5486af754c990f9a11f91195e28ffd4c735 (patch) | |
tree | 0cd4386d744a64bde246dc105a7718bdf0034345 /drivers/net | |
parent | cxgb3: use kvfree() in cxgb_free_mem() (diff) | |
download | linux-d2fcb5486af754c990f9a11f91195e28ffd4c735.tar.xz linux-d2fcb5486af754c990f9a11f91195e28ffd4c735.zip |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index c64b5a99bfef..351f3b1bf800 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -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 |