From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Mon, 5 Oct 2020 14:32:29 -0700 Subject: [PATCH 2/3] fdtdec: correct test on return of fdt_node_offset_by_phandle In-Reply-To: References: <20200925074116.16068-1-patrick.delaunay@st.com> <20200925074116.16068-2-patrick.delaunay@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 25 Sep 2020 at 01:41, Patrick Delaunay 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 > --- > > lib/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass Applied to u-boot-dm/next, thanks!