projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d64dbbc
)
xen/arm: domain_build: Removed unused variable in write_properties
author
Julien Grall
<julien.grall@citrix.com>
Wed, 14 Oct 2015 09:34:32 +0000
(10:34 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 14 Oct 2015 10:04:56 +0000
(11:04 +0100)
The variable new_data is initialized to NULL and free but never
allocated neither used.
Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c
patch
|
blob
|
history
diff --git
a/xen/arch/arm/domain_build.c
b/xen/arch/arm/domain_build.c
index eb93a3a4a700a56e771bae4d2d83acc24041de3d..0c3441a177c3ce40c5920d187dc27025ba26d207 100644
(file)
--- 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;
}