]> git.baikalelectronics.ru Git - kernel.git/commitdiff
libcxgbi: use kvfree() in cxgbi_free_big_mem()
authorPekka Enberg <penberg@kernel.org>
Tue, 30 Jun 2015 21:59:27 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:45:00 +0000 (19:45 -0700)
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Cc: "James E.J. Bottomley" <JBottomley@odin.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/cxgbi/libcxgbi.h

index b3e5bd1d5d9cd3f6577bf0a12ddfe44e8548bb31..9842301f798075dfd7a2e7e0769a806c3dea0a68 100644 (file)
@@ -685,10 +685,7 @@ static inline void *cxgbi_alloc_big_mem(unsigned int size,
 
 static inline void cxgbi_free_big_mem(void *addr)
 {
-       if (is_vmalloc_addr(addr))
-               vfree(addr);
-       else
-               kfree(addr);
+       kvfree(addr);
 }
 
 static inline void cxgbi_set_iscsi_ipv4(struct cxgbi_hba *chba, __be32 ipaddr)