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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to