From: Jason Cooper Date: Thu, 30 Sep 2010 19:15:34 +0000 (-0400) Subject: staging: brcm80211: fix checkpatch error 'assignment in if condition' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eb7f37b3d56839fc0c3b631146f8b3be96b71879;p=openwrt%2Fstaging%2Fblogic.git staging: brcm80211: fix checkpatch error 'assignment in if condition' Signed-off-by: Jason Cooper Acked-by: Henry Ptasinski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/brcm80211/util/sbutils.c b/drivers/staging/brcm80211/util/sbutils.c index 0bb487146a77..7de5838564ac 100644 --- a/drivers/staging/brcm80211/util/sbutils.c +++ b/drivers/staging/brcm80211/util/sbutils.c @@ -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 */