]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
brcm80211: brcmsmac: fixed checkpatch and sparse warnings
authorChris Yungmann <yungmann.chris@gmail.com>
Sun, 3 Jun 2012 05:57:57 +0000 (00:57 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Jun 2012 19:20:23 +0000 (15:20 -0400)
Fixed checkpatch and sparse warnings related to aiutils.*

Signed-off-by: Chris Yungmann <yungmann.chris@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
drivers/net/wireless/brcm80211/brcmsmac/aiutils.h

index 6d8b7213643aa320dbb05edc026a4510620ef747..3c6f9b1e8d059176a26775d73f546254e14d22ed 100644 (file)
@@ -631,9 +631,8 @@ uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val)
        cc = sii->icbus->drv_cc.core;
 
        /* mask and set */
-       if (mask || val) {
+       if (mask || val)
                bcma_maskset32(cc, regoff, ~mask, val);
-       }
 
        /* readback */
        w = bcma_read32(cc, regoff);
index d9f04a683bdb30566c2385f9905a63affe478806..d6fa9829af9a58a7154de19b434ea5786def48dc 100644 (file)
@@ -193,7 +193,7 @@ extern void ai_detach(struct si_pub *sih);
 extern uint ai_cc_reg(struct si_pub *sih, uint regoff, u32 mask, u32 val);
 extern void ai_clkctl_init(struct si_pub *sih);
 extern u16 ai_clkctl_fast_pwrup_delay(struct si_pub *sih);
-extern bool ai_clkctl_cc(struct si_pub *sih, uint mode);
+extern bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode);
 extern bool ai_deviceremoved(struct si_pub *sih);
 
 extern void ai_pci_down(struct si_pub *sih);