Module Name:    src
Committed By:   jruoho
Date:           Sun Apr 25 17:06:23 UTC 2010

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

Log Message:
Returning instead of breaking out if the sleep state is not available.


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/sys/dev/acpi/acpi.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/acpi/acpi.c
diff -u src/sys/dev/acpi/acpi.c:1.190 src/sys/dev/acpi/acpi.c:1.191
--- src/sys/dev/acpi/acpi.c:1.190	Sun Apr 25 17:03:08 2010
+++ src/sys/dev/acpi/acpi.c	Sun Apr 25 17:06:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: acpi.c,v 1.190 2010/04/25 17:03:08 jruoho Exp $	*/
+/*	$NetBSD: acpi.c,v 1.191 2010/04/25 17:06:23 jruoho Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.190 2010/04/25 17:03:08 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.191 2010/04/25 17:06:23 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -1451,7 +1451,7 @@
 		if ((sc->sc_sleepstates & __BIT(state)) == 0) {
 			aprint_error_dev(sc->sc_dev, "sleep state "
 			    "S%d is not available\n", state);
-			break;
+			return AE_OK;
 		}
 
 		/*

Reply via email to