Commit 2a2de68a authored by Michal Orzel's avatar Michal Orzel Committed by Stefano Stabellini

xen/arm: bootfdt.c: Remove unused-but-set variable

Function device_tree_node_compatible defines and sets a variable
mlen but does not make use of it. Remove this variable.
Signed-off-by: default avatarMichal Orzel <michal.orzel@arm.com>
Reviewed-by: default avatarJulien Grall <jgrall@amazon.com>
parent 53b705d0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment