summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/common.c
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2012-03-15 21:48:27 +0000
committerraj <raj@FreeBSD.org>2012-03-15 21:48:27 +0000
commit3b858f15a9ba8059e55c7e2b2d560cdb37dff77f (patch)
tree5745c1389339c31e8aec434748540fa315fdd036 /sys/arm/mv/common.c
parent640706fe968d3c7214a512319d0a0037ea870664 (diff)
downloadFreeBSD-src-3b858f15a9ba8059e55c7e2b2d560cdb37dff77f.zip
FreeBSD-src-3b858f15a9ba8059e55c7e2b2d560cdb37dff77f.tar.gz
Fix error check.
Submitted by: Lukasz Plachno Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv/common.c')
-rw-r--r--sys/arm/mv/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/common.c b/sys/arm/mv/common.c
index c7beae8..06104f1 100644
--- a/sys/arm/mv/common.c
+++ b/sys/arm/mv/common.c
@@ -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)
OpenPOWER on IntegriCloud