commit | 0449f06a777015696253ce7f06e55289df814546 | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Thu Apr 08 17:15:00 2021 -0400 |
committer | Simon Glass <sjg@chromium.org> | Thu Apr 29 03:23:39 2021 -0700 |
tree | 9af5d028a1a8d2d40ebaf30a46439696ba686601 | |
parent | 2a28c6ee04648efa3522773573cc2da4e79b5de3 [diff] |
dm: core: Fix uninitialized return value from dm_scan_fdt_node 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>