|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/arm: bootfdt.c: Remove unused-but-set variable
commit 2a2de68a60f4ff8f322c0ad7873c1e6048c6fca4
Author: Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Wed Apr 27 11:49:34 2022 +0200
Commit: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
CommitDate: Wed Apr 27 15:20:23 2022 -0700
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: Michal Orzel <michal.orzel@xxxxxxx>
Reviewed-by: Julien Grall <jgrall@xxxxxxxxxx>
---
xen/arch/arm/bootfdt.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c
index e318ef9603..29671c8df0 100644
--- 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;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |