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

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

libcxgbi: use kvfree() in cxgbi_free_big_mem()



Use kvfree() instead of open-coding it.

Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Cc: "James E.J. Bottomley" <JBottomley@odin.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent de64d3a6
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -685,10 +685,7 @@ static inline void *cxgbi_alloc_big_mem(unsigned int size,


static inline void cxgbi_free_big_mem(void *addr)
static inline void cxgbi_free_big_mem(void *addr)
{
{
	if (is_vmalloc_addr(addr))
	kvfree(addr);
		vfree(addr);
	else
		kfree(addr);
}
}


static inline void cxgbi_set_iscsi_ipv4(struct cxgbi_hba *chba, __be32 ipaddr)
static inline void cxgbi_set_iscsi_ipv4(struct cxgbi_hba *chba, __be32 ipaddr)