projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b705d
)
xen/arm: bootfdt.c: Remove unused-but-set variable
author
Michal Orzel
<michal.orzel@arm.com>
Wed, 27 Apr 2022 09:49:34 +0000
(11:49 +0200)
committer
Stefano Stabellini
<stefano.stabellini@xilinx.com>
Wed, 27 Apr 2022 22:20:23 +0000
(15:20 -0700)
Function device_tree_node_compatible defines and sets a variable
mlen but does not make use of it. Remove this variable.
Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/bootfdt.c
patch
|
blob
|
history
diff --git
a/xen/arch/arm/bootfdt.c
b/xen/arch/arm/bootfdt.c
index e318ef9603865defd63fd3e870bab130b816fb55..29671c8df08e220c387fd9267b274a83705c8312 100644
(file)
--- a/
xen/arch/arm/bootfdt.c
+++ b/
xen/arch/arm/bootfdt.c
@@
-36,11
+36,8
@@
static bool __init device_tree_node_compatible(const void *fdt, int node,
const char *match)
{
int len, l;
- int mlen;
const void *prop;
- mlen = strlen(match);
-
prop = fdt_getprop(fdt, node, "compatible", &len);
if ( prop == NULL )
return false;