Fix error check.
Submitted by: Lukasz Plachno Obtained from: Semihalf
This commit is contained in:
parent
effed41a0b
commit
fd62dcff8a
@ -1766,7 +1766,7 @@ win_cpu_from_dt(void)
|
||||
if (fdt_is_compatible(node, "mrvl,cesa-sram"))
|
||||
goto moveon;
|
||||
|
||||
if ((node = OF_finddevice("/")) != -1)
|
||||
if ((node = OF_finddevice("/")) == -1)
|
||||
return (ENXIO);
|
||||
|
||||
if ((node = fdt_find_compatible(node, "mrvl,cesa-sram", 0)) == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user