diff options
-rw-r--r-- | sys/dev/ofw/ofw_thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_thermal.c b/sys/dev/ofw/ofw_thermal.c index 171b11e1685..562866f7f36 100644 --- a/sys/dev/ofw/ofw_thermal.c +++ b/sys/dev/ofw/ofw_thermal.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_thermal.c,v 1.1 2019/07/02 20:12:11 kettenis Exp $ */ +/* $OpenBSD: ofw_thermal.c,v 1.2 2019/07/03 21:20:14 kettenis Exp $ */ /* * Copyright (c) 2019 Mark Kettenis * @@ -434,7 +434,7 @@ thermal_init(void) { int node = OF_finddevice("/thermal-zones"); - if (node == 0) + if (node == -1) return; tztq = taskq_create("tztq", 1, IPL_NONE, 0); |