Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422661AbbEOSfl (ORCPT ); Fri, 15 May 2015 14:35:41 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:32950 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754200AbbEOSfb (ORCPT ); Fri, 15 May 2015 14:35:31 -0400 From: Pekka Enberg To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Pekka Enberg Subject: [PATCH 01/14] ipc/util.c: Use kvfree() in ipc_rcu_free() Date: Fri, 15 May 2015 21:35:10 +0300 Message-Id: <1431714923-23028-1-git-send-email-penberg@kernel.org> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 31 Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg --- ipc/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ipc/util.c b/ipc/util.c index ff3323e..537a41c 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -467,10 +467,7 @@ void ipc_rcu_free(struct rcu_head *head) { struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu); - if (is_vmalloc_addr(p)) - vfree(p); - else - kfree(p); + kvfree(p); } /** -- 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/