]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: bootfdt.c: Remove unused-but-set variable
authorMichal Orzel <michal.orzel@arm.com>
Wed, 27 Apr 2022 09:49:34 +0000 (11:49 +0200)
committerStefano 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

index e318ef9603865defd63fd3e870bab130b816fb55..29671c8df08e220c387fd9267b274a83705c8312 100644 (file)
@@ -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;