]> Pileus Git - ~andy/linux/commitdiff
staging: brcm80211: fix checkpatch error 'assignment in if condition'
authorJason Cooper <jason@lakedaemon.net>
Thu, 30 Sep 2010 19:15:34 +0000 (15:15 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 16:22:24 +0000 (09:22 -0700)
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/util/sbutils.c

index 0bb487146a77a3b9e5a805885065433c99d98677..7de5838564ac5c3e49e5eae94c3eb7291ca9e8e4 100644 (file)
@@ -543,7 +543,8 @@ void sb_core_reset(si_t *sih, uint32 bits, uint32 resetbits)
        if (R_SBREG(sii, &sb->sbtmstatehigh) & SBTMH_SERR)
                W_SBREG(sii, &sb->sbtmstatehigh, 0);
 
-       if ((dummy = R_SBREG(sii, &sb->sbimstate)) & (SBIM_IBE | SBIM_TO))
+       dummy = R_SBREG(sii, &sb->sbimstate);
+       if (dummy & (SBIM_IBE | SBIM_TO))
                AND_SBREG(sii, &sb->sbimstate, ~(SBIM_IBE | SBIM_TO));
 
        /* clear reset and allow it to propagate throughout the core */