diff options
author | raj <raj@FreeBSD.org> | 2012-03-15 21:48:27 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2012-03-15 21:48:27 +0000 |
commit | 3b858f15a9ba8059e55c7e2b2d560cdb37dff77f (patch) | |
tree | 5745c1389339c31e8aec434748540fa315fdd036 /sys/arm/mv | |
parent | 640706fe968d3c7214a512319d0a0037ea870664 (diff) | |
download | FreeBSD-src-3b858f15a9ba8059e55c7e2b2d560cdb37dff77f.zip FreeBSD-src-3b858f15a9ba8059e55c7e2b2d560cdb37dff77f.tar.gz |
Fix error check.
Submitted by: Lukasz Plachno
Obtained from: Semihalf
Diffstat (limited to 'sys/arm/mv')
-rw-r--r-- | sys/arm/mv/common.c | 2 |
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) |