Re: [U-Boot] [PATCH 1/3] fdt: check for fdt errors in fdt_create_phandle

2011-10-15 Thread Jerry Van Baren
On 09/20/2011 07:24 PM, Timur Tabi wrote: > 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 retur

[U-Boot] [PATCH 1/3] fdt: check for fdt errors in fdt_create_phandle

2011-09-20 Thread Timur Tabi
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: Timur Tabi ---