Skip to content
Snippets Groups Projects
Commit 3c927ccc authored by Timur Tabi's avatar Timur Tabi Committed by Gerald Van Baren
Browse files

fdt: check for fdt errors in fdt_create_phandle


fdt_create_phandle() was ignoring errors from fdt_set_phandle().  If an
error occurs, print an error message and return 0, which is an invalid
phandle.  We also need to change the return type for fdt_create_phandle()
to indicate that it cannot return an error code.

Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
parent 8ddb10ea
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