[haiku-commits] r34810 - haiku/trunk/src/add-ons/kernel/drivers/network/wlan/atheroswifi

  • From: coling@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 29 Dec 2009 19:15:39 +0100 (CET)

Author: colin
Date: 2009-12-29 19:15:39 +0100 (Tue, 29 Dec 2009)
New Revision: 34810
Changeset: http://dev.haiku-os.org/changeset/34810/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c
Log:
Codestyle cleanup. No functional change.


Modified: haiku/trunk/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c      
2009-12-29 18:12:17 UTC (rev 34809)
+++ haiku/trunk/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c      
2009-12-29 18:15:39 UTC (rev 34810)
@@ -27,34 +27,32 @@
        struct ath_hal* ah = ath->sc_ah;
        HAIKU_INTR_REGISTER_STATE;
 
-       if (ath->sc_invalid) {
-               /*
-                * The hardware is not ready/present, don't touch anything.
-                * Note this can happen early on if the IRQ is shared.
-                */
+       if (ath->sc_invalid)
+               // The hardware is not ready/present, don't touch anything.
+               // Note this can happen early on if the IRQ is shared.
                return 0;
-       }
 
        HAIKU_INTR_REGISTER_ENTER();
-       if (!ath_hal_intrpend(ah)) {            /* shared irq, not for us */
+       if (!ath_hal_intrpend(ah)) {
+               // shared irq, not for us
                HAIKU_INTR_REGISTER_LEAVE();
                return 0;
        }
 
-       /*
-        * We have to save the isr status right now.
-        * Some devices don't like having the interrupt disabled
-        * before accessing the isr status.
-        *
-        * Those devices return status 0, when status access
-        * occurs after disabling the interrupts with ath_hal_intrset.
-        *
-        * Note: Haiku's pcnet driver uses the same technique of
-        *       appending a sc_lastisr field.
-        */
+        // We have to save the isr status right now.
+        // Some devices don't like having the interrupt disabled
+        // before accessing the isr status.
+        //
+        // Those devices return status 0, when status access
+        // occurs after disabling the interrupts with ath_hal_intrset.
+        //
+        // Note: Haiku's pcnet driver uses the same technique of
+        //       appending a sc_lastisr field.
        ath_hal_getisr(ah, &ath->sc_lastisr);
-       ath_hal_intrset(ah, 0); // disable further intr's
 
+       ath_hal_intrset(ah, 0);
+               // disable further intr's
+
        HAIKU_INTR_REGISTER_LEAVE();
        return 1;
 }


Other related posts: