Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/apm fix unused variable
details: https://anonhg.NetBSD.org/src/rev/fcbdb029d966
branches: trunk
changeset: 791198:fcbdb029d966
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 08 02:47:41 2013 +0000
description:
fix unused variable
diffstat:
sys/dev/apm/apm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 074f4cde5c9f -r fcbdb029d966 sys/dev/apm/apm.c
--- a/sys/dev/apm/apm.c Fri Nov 08 02:24:53 2013 +0000
+++ b/sys/dev/apm/apm.c Fri Nov 08 02:47:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apm.c,v 1.28 2012/09/30 21:36:19 dsl Exp $ */
+/* $NetBSD: apm.c,v 1.29 2013/11/08 02:47:41 christos Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.28 2012/09/30 21:36:19 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.29 2013/11/08 02:47:41 christos Exp $");
#include "opt_apm.h"
@@ -449,6 +449,8 @@
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;
Home |
Main Index |
Thread Index |
Old Index