Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sysmon Correctly check return status when registerin...



details:   https://anonhg.NetBSD.org/src/rev/62dc7af40abb
branches:  trunk
changeset: 337743:62dc7af40abb
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Apr 25 23:40:08 2015 +0000

description:
Correctly check return status when registering with pmf

diffstat:

 sys/dev/sysmon/sysmon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0efe4c2c6301 -r 62dc7af40abb sys/dev/sysmon/sysmon.c
--- a/sys/dev/sysmon/sysmon.c   Sat Apr 25 23:16:37 2015 +0000
+++ b/sys/dev/sysmon/sysmon.c   Sat Apr 25 23:40:08 2015 +0000
@@ -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 @@
                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);
 



Home | Main Index | Thread Index | Old Index