mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Fix error check.
Submitted by: Lukasz Plachno Obtained from: Semihalf
This commit is contained in:
parent
effed41a0b
commit
fd62dcff8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233013
@ -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…
Reference in New Issue
Block a user