From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753728AbbLVAIc (ORCPT ); Mon, 21 Dec 2015 19:08:32 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:33014 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbbLUXsD (ORCPT ); Mon, 21 Dec 2015 18:48:03 -0500 From: Al Viro To: linux-kernel@vger.kernel.org Cc: Linus Torvalds Subject: [POC][PATCH 19/83] xenstored_local_init(): get rid of pointless casts Date: Mon, 21 Dec 2015 23:46:52 +0000 Message-Id: <1450741676-5865-19-git-send-email-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <20151221234615.GW20997@ZenIV.linux.org.uk> References: <20151221234615.GW20997@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- drivers/xen/xenbus/xenbus_probe.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 3e43b5a..d896283 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c @@ -702,12 +702,12 @@ device_initcall(xenbus_probe_initcall); */ static int __init xenstored_local_init(void) { - int err = 0; - unsigned long page = 0; struct evtchn_alloc_unbound alloc_unbound; + void *page; + int err = 0; /* Allocate Xenstore page */ - page = (unsigned long)get_zeroed_page(GFP_KERNEL); + page = get_zeroed_page(GFP_KERNEL); if (!page) goto out_err; @@ -729,8 +729,7 @@ static int __init xenstored_local_init(void) return 0; out_err: - if (page != 0) - free_page((void *)page); + free_page(page); return err; } -- 2.1.4