Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2012 17:07:52 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236409 - in head/sys: amd64/acpica i386/acpica ia64/acpica
Message-ID:  <201206011707.q51H7qXq031786@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Fri Jun  1 17:07:52 2012
New Revision: 236409
URL: http://svn.freebsd.org/changeset/base/236409

Log:
  Improve style(9) in the previous commit.

Modified:
  head/sys/amd64/acpica/acpi_wakeup.c
  head/sys/i386/acpica/acpi_wakeup.c
  head/sys/ia64/acpica/acpi_wakeup.c

Modified: head/sys/amd64/acpica/acpi_wakeup.c
==============================================================================
--- head/sys/amd64/acpica/acpi_wakeup.c	Fri Jun  1 17:00:33 2012	(r236408)
+++ head/sys/amd64/acpica/acpi_wakeup.c	Fri Jun  1 17:07:52 2012	(r236409)
@@ -283,14 +283,14 @@ acpi_sleep_machdep(struct acpi_softc *sc
 }
 
 int
-acpi_wakeup_machdep(struct acpi_softc *sc, int state,
-    int sleep_result, int intr_enabled)
+acpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result,
+    int intr_enabled)
 {
 
 	if (sleep_result == -1)
 		return (sleep_result);
 
-	if (intr_enabled == 0) {
+	if (!intr_enabled) {
 		/* Wakeup MD procedures in interrupt disabled context */
 		if (sleep_result == 1) {
 			pmap_init_pat();

Modified: head/sys/i386/acpica/acpi_wakeup.c
==============================================================================
--- head/sys/i386/acpica/acpi_wakeup.c	Fri Jun  1 17:00:33 2012	(r236408)
+++ head/sys/i386/acpica/acpi_wakeup.c	Fri Jun  1 17:07:52 2012	(r236409)
@@ -269,14 +269,14 @@ acpi_sleep_machdep(struct acpi_softc *sc
 }
 
 int
-acpi_wakeup_machdep(struct acpi_softc *sc, int state,
-    int sleep_result, int intr_enabled)
+acpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result,
+    int intr_enabled)
 {
 
 	if (sleep_result == -1)
 		return (sleep_result);
 
-	if (intr_enabled == 0) {
+	if (!intr_enabled) {
 		/* Wakeup MD procedures in interrupt disabled context */
 		if (sleep_result == 1) {
 			pmap_init_pat();

Modified: head/sys/ia64/acpica/acpi_wakeup.c
==============================================================================
--- head/sys/ia64/acpica/acpi_wakeup.c	Fri Jun  1 17:00:33 2012	(r236408)
+++ head/sys/ia64/acpica/acpi_wakeup.c	Fri Jun  1 17:07:52 2012	(r236409)
@@ -40,8 +40,8 @@ acpi_sleep_machdep(struct acpi_softc *sc
 }
 
 int
-acpi_wakeup_machdep(struct acpi_softc *sc, int state,
-    int sleep_result, int intr_enabled)
+acpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result,
+    int intr_enabled)
 {
 	return (0);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206011707.q51H7qXq031786>