'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>
bool found = false;
const char *name, *compat_list, *compat;
int compat_length, i;
- int result = 0;
int ret = 0;
if (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