]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
dm: core: lists_bind_fdt: Remove unused variable
authorMarkus Schneider-Pargmann (TI.com) <msp@baylibre.com>
Tue, 27 Jan 2026 11:03:35 +0000 (12:03 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jan 2026 15:20:59 +0000 (09:20 -0600)
'result' is unused in this function, remove it.

Reviewed-by: Simon Glass <simon.glass@canonical.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Signed-off-by: Markus Schneider-Pargmann (TI.com) <msp@baylibre.com>
drivers/core/lists.c

index c7be504b6fc69ec2870a6766eed35cb9eba46a97..52ba6c7bfa007b660b854de62c97ad3c1761f1a5 100644 (file)
@@ -207,7 +207,6 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp,
        bool found = false;
        const char *name, *compat_list, *compat;
        int compat_length, i;
-       int result = 0;
        int ret = 0;
 
        if (devp)
@@ -283,9 +282,9 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp,
                break;
        }
 
-       if (!found && !result && ret != -ENODEV)
+       if (!found && ret != -ENODEV)
                log_debug("No match for node '%s'\n", name);
 
-       return result;
+       return 0;
 }
 #endif