summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: feb7ac4)
raw | patch | inline | side by side (parent: feb7ac4)
author | Sean Anderson <sean.anderson@seco.com> | |
Thu, 8 Apr 2021 21:15:00 +0000 (17:15 -0400) | ||
committer | Simon Glass <sjg@chromium.org> | |
Thu, 29 Apr 2021 10:23:39 +0000 (03:23 -0700) |
If there are no nodes or if all nodes are disabled, this function would
return err without setting it first. Fix this by initializing err to
zero.
Fixes: 94f7afdf7e ("dm: core: Ignore disabled devices when binding")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
return err without setting it first. Fix this by initializing err to
zero.
Fixes: 94f7afdf7e ("dm: core: Ignore disabled devices when binding")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c | patch | blob | history |
diff --git a/drivers/core/root.c b/drivers/core/root.c
index d9a19c5e6b6caa040ee0f1c6ce3203a01cdcb674..f852d867dbe9c920eb7a9c4c1d013a923ca48485 100644 (file)
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
static int dm_scan_fdt_node(struct udevice *parent, ofnode parent_node,
bool pre_reloc_only)
{
- int ret = 0, err;
+ int ret = 0, err = 0;
ofnode node;
if (!ofnode_valid(parent_node))