From 097be0a818c0a042620e373da48c91228f2fe5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20G=C3=BCnther?= Date: Tue, 29 Dec 2009 18:15:39 +0000 Subject: [PATCH] Codestyle cleanup. No functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34810 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../drivers/network/wlan/atheroswifi/glue.c | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c b/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c index e04bbbcef7..b1e0c4ea96 100644 --- a/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c +++ b/src/add-ons/kernel/drivers/network/wlan/atheroswifi/glue.c @@ -27,33 +27,31 @@ HAIKU_CHECK_DISABLE_INTERRUPTS(device_t dev) 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;