Module Name:    src
Committed By:   christos
Date:           Fri Nov  8 02:47:41 UTC 2013

Modified Files:
        src/sys/dev/apm: apm.c

Log Message:
fix unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/apm/apm.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/apm/apm.c
diff -u src/sys/dev/apm/apm.c:1.28 src/sys/dev/apm/apm.c:1.29
--- src/sys/dev/apm/apm.c:1.28	Sun Sep 30 17:36:19 2012
+++ src/sys/dev/apm/apm.c	Thu Nov  7 21:47:41 2013
@@ -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 @@ 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;

Reply via email to