summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann (TI.com) <[email protected]>2026-01-27 12:03:35 +0100
committerTom Rini <[email protected]>2026-01-28 09:20:59 -0600
commit6f3e63b4de851357d81f74211f14fd3b577cae6c (patch)
treea51b0eb978018309c09ee214c4ea80019b9a242f /drivers
parentaa4f687977a449686498236722ee5e93d8b39918 (diff)
dm: core: lists_bind_fdt: Remove unused variable
'result' is unused in this function, remove it. Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/lists.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index c7be504b6fc..52ba6c7bfa0 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -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