summaryrefslogtreecommitdiff
path: root/sys/dev/sysmon/sysmon.c
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2015-04-25 23:40:08 +0000
committerpgoyette <pgoyette@NetBSD.org>2015-04-25 23:40:08 +0000
commit582717558147dea78d88ac0aaa7ca7700b08bc2d (patch)
tree00facb0fad399c1f4fa6d5843dc8bce4d96fbc89 /sys/dev/sysmon/sysmon.c
parente6b63483444374657151a464065d8a8ee7ccbc50 (diff)
Correctly check return status when registering with pmf
Diffstat (limited to 'sys/dev/sysmon/sysmon.c')
-rw-r--r--sys/dev/sysmon/sysmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sysmon/sysmon.c b/sys/dev/sysmon/sysmon.c
index 665affbccbc..7803b8ab76f 100644
--- a/sys/dev/sysmon/sysmon.c
+++ b/sys/dev/sysmon/sysmon.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon.c,v 1.23 2015/04/25 23:16:37 pgoyette Exp $ */
+/* $NetBSD: sysmon.c,v 1.24 2015/04/25 23:40:09 pgoyette Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.23 2015/04/25 23:16:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon.c,v 1.24 2015/04/25 23:40:09 pgoyette Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -397,7 +397,7 @@ sysmon_init(void)
error = ENODEV;
}
- if (pmf_device_register(sysmon_dev, NULL, NULL))
+ if (!pmf_device_register(sysmon_dev, NULL, NULL))
aprint_error("%s: failed to register with pmf\n",
sysmon_cd.cd_name);