From fd62dcff8a2b01caa0d25d10d3b285e2003109c4 Mon Sep 17 00:00:00 2001 From: Rafal Jaworowski Date: Thu, 15 Mar 2012 21:48:27 +0000 Subject: [PATCH] Fix error check. Submitted by: Lukasz Plachno Obtained from: Semihalf --- sys/arm/mv/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/mv/common.c b/sys/arm/mv/common.c index c7beae8b57bd..06104f108c68 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)