[PATCH 2/3] fdtdec: correct test on return of fdt_node_offset_by_phandle
Simon Glass
sjg at chromium.org
Mon Oct 5 03:42:02 CEST 2020
On Fri, 25 Sep 2020 at 01:41, Patrick Delaunay <patrick.delaunay at st.com> wrote:
>
> The result of fdt_node_offset_by_phandle is negative for error,
> so this patch corrects the check of this result in
> fdtdec_parse_phandle_with_args.
>
> This patch allows to have the same behavior with or without OF_LIVE
> for the function dev_read_phandle_with_args with cell_name = NULL and
> with invalid phandle.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
>
> lib/fdtdec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list