Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964998AbbEOSf5 (ORCPT ); Fri, 15 May 2015 14:35:57 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:35410 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422743AbbEOSfo (ORCPT ); Fri, 15 May 2015 14:35:44 -0400 From: Pekka Enberg To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Pekka Enberg , "James E.J. Bottomley" Subject: [PATCH 11/14] libcxgbi: Use kvfree() in cxgbi_free_big_mem() Date: Fri, 15 May 2015 21:35:20 +0300 Message-Id: <1431714923-23028-11-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1431714923-23028-1-git-send-email-penberg@kernel.org> References: <1431714923-23028-1-git-send-email-penberg@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 971 Lines: 32 Use kvfree() instead of open-coding it. Cc: "James E.J. Bottomley" Signed-off-by: Pekka Enberg --- drivers/scsi/cxgbi/libcxgbi.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index aba1af7..c2eb7ea 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, 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) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/