Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Return instead of breaking out if the sleep sta...



details:   https://anonhg.NetBSD.org/src/rev/7486470ec9a7
branches:  trunk
changeset: 754275:7486470ec9a7
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sun Apr 25 17:06:23 2010 +0000

description:
Return instead of breaking out if the sleep state is not available.

diffstat:

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

diffs (27 lines):

diff -r ea6cbc9bb291 -r 7486470ec9a7 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Sun Apr 25 17:03:08 2010 +0000
+++ b/sys/dev/acpi/acpi.c       Sun Apr 25 17:06:23 2010 +0000
@@ -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;
                }
 
                /*



Home | Main Index | Thread Index | Old Index