From: Julien Grall Subject: [PATCH] xen/arm: domain_build: Removed unused variable in write_properties Date: Wed, 14 Oct 2015 10:34:32 +0100 Message-ID: <1444815272-21871-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZmITn-0000Dz-PK for xen-devel@lists.xenproject.org; Wed, 14 Oct 2015 09:36:15 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Julien Grall , ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org The variable new_data is initialized to NULL and free but never allocated neither used. Signed-off-by: Julien Grall --- xen/arch/arm/domain_build.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index eb93a3a..0c3441a 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -415,7 +415,6 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, dt_for_each_property_node (node, prop) { const void *prop_data = prop->value; - void *new_data = NULL; u32 prop_len = prop->length; /* @@ -471,8 +470,6 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, res = fdt_property(kinfo->fdt, prop->name, prop_data, prop_len); - xfree(new_data); - if ( res ) return res; } -- 2.1.4