On Thu, 8 Jan 2026 at 04:17, Markus Schneider-Pargmann (TI.com) <[email protected]> wrote: > > 'result' is unused in this function, remove it. > > Signed-off-by: Markus Schneider-Pargmann (TI.com) <[email protected]> > --- > drivers/core/lists.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <[email protected]> > > diff --git a/drivers/core/lists.c b/drivers/core/lists.c > index > c7be504b6fc69ec2870a6766eed35cb9eba46a97..52ba6c7bfa007b660b854de62c97ad3c1761f1a5 > 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 > > -- > 2.51.0 >

