Re: [U-Boot] [PATCH 1/1] usb: xhci-exynos5: correct error checking

2018-03-18 Thread Bin Meng
On Mon, Mar 19, 2018 at 11:00 AM, Bin Meng wrote: > On Sun, Mar 18, 2018 at 8:51 PM, Heinrich Schuchardt > wrote: >> If fdtdec_next_compatible_subnode() fails it returns a negative value. >> The check (node <= 0) cannot identify this if node is unsigned.

Re: [U-Boot] [PATCH 1/1] usb: xhci-exynos5: correct error checking

2018-03-18 Thread Bin Meng
On Sun, Mar 18, 2018 at 8:51 PM, Heinrich Schuchardt wrote: > If fdtdec_next_compatible_subnode() fails it returns a negative value. > The check (node <= 0) cannot identify this if node is unsigned. > > Signed-off-by: Heinrich Schuchardt > --- >

[U-Boot] [PATCH 1/1] usb: xhci-exynos5: correct error checking

2018-03-18 Thread Heinrich Schuchardt
If fdtdec_next_compatible_subnode() fails it returns a negative value. The check (node <= 0) cannot identify this if node is unsigned. Signed-off-by: Heinrich Schuchardt --- drivers/usb/host/xhci-exynos5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git