Skip to content
Snippets Groups Projects
Commit 6784cb35 authored by Sean Anderson's avatar Sean Anderson Committed by Simon Glass
Browse files

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: 94f7afdf ("dm: core: Ignore disabled devices when binding")

Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent feb7ac45
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment