diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 17:59:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-30 22:45:00 -0400 |
commit | 32a78facdd0a5e77d18d03dbe53e0823d249b0bb (patch) | |
tree | ec91a9e2cf0a3ef66778dd586e43d81b2d065095 /drivers/scsi | |
parent | de64d3a6c7c0cd9cbf673b68fd4a7ae6a2b8f035 (diff) |
libcxgbi: use kvfree() in cxgbi_free_big_mem()
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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/cxgbi/libcxgbi.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index b3e5bd1d5d9c..9842301f7980 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h | |||
@@ -685,10 +685,7 @@ static inline void *cxgbi_alloc_big_mem(unsigned int size, | |||
685 | 685 | ||
686 | static inline void cxgbi_free_big_mem(void *addr) | 686 | static inline void cxgbi_free_big_mem(void *addr) |
687 | { | 687 | { |
688 | if (is_vmalloc_addr(addr)) | 688 | kvfree(addr); |
689 | vfree(addr); | ||
690 | else | ||
691 | kfree(addr); | ||
692 | } | 689 | } |
693 | 690 | ||
694 | static inline void cxgbi_set_iscsi_ipv4(struct cxgbi_hba *chba, __be32 ipaddr) | 691 | static inline void cxgbi_set_iscsi_ipv4(struct cxgbi_hba *chba, __be32 ipaddr) |