Module Name: src
Committed By: christos
Date: Sat Nov 9 02:44:52 UTC 2013
Modified Files:
src/sys/dev/hpc/apm: apmdev.c
Log Message:
fixed unused variable warning
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/hpc/apm/apmdev.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hpc/apm/apmdev.c
diff -u src/sys/dev/hpc/apm/apmdev.c:1.27 src/sys/dev/hpc/apm/apmdev.c:1.28
--- src/sys/dev/hpc/apm/apmdev.c:1.27 Wed Oct 3 19:55:22 2012
+++ src/sys/dev/hpc/apm/apmdev.c Fri Nov 8 21:44:52 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: apmdev.c,v 1.27 2012/10/03 23:55:22 christos Exp $ */
+/* $NetBSD: apmdev.c,v 1.28 2013/11/09 02:44:52 christos Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.27 2012/10/03 23:55:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.28 2013/11/09 02:44:52 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_apm.h"
@@ -461,6 +461,8 @@ apm_event_handle(struct apm_softc *sc, u
if (error == 0 &&
(sc->sc_flags & (SCFLAG_OREAD|SCFLAG_OWRITE)) == 0)
apm_power_print(sc, &pi);
+#else
+ __USE(error);
#endif
apm_record_event(sc, event_code);
break;