Skip to contentSkip to conversation

xen/arm: domain_build: Removed unused variable in write_properties

PATCH In review Julien Grall 2 participants 2 messages Oct 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: domain_build: Removed unused variable in write_properties

The variable new_data is initialized to NULL and free but never allocated neither used.

---
 xen/arch/arm/domain_build.c | 3 ---
 1 file changed, 3 deletions(-)
xen/arch/arm/domain_build.c +0 -3
index eb93a3a..0c3441a 100644
@@ -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;
     }
Signature · 1 line
2.1.4