diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2015-04-25 23:40:08 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2015-04-25 23:40:08 +0000 |
| commit | 582717558147dea78d88ac0aaa7ca7700b08bc2d (patch) | |
| tree | 00facb0fad399c1f4fa6d5843dc8bce4d96fbc89 /sys/dev/sysmon/sysmon.c | |
| parent | e6b63483444374657151a464065d8a8ee7ccbc50 (diff) | |
Correctly check return status when registering with pmf
Diffstat (limited to 'sys/dev/sysmon/sysmon.c')
| -rw-r--r-- | sys/dev/sysmon/sysmon.c | 6 |
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); |
