commit | 6784cb35f52b1f742a4b56cc6b5697b6ca784598 | [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 | feb7ac457c20ac575749471141722b0bbe6303ca [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>