Skip to contentSkip to conversation

staging/brcm80211: simplify expression

PATCH New Nicolas Kaiser 1 participant 1 message Oct 29, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/brcm80211: simplify expression

Simplify: ((a && b) || !a) => (b || !a)

---
 drivers/staging/brcm80211/sys/wlc_mac80211.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/brcm80211/sys/wlc_mac80211.c +1 -1
index feaffcc..aab2d8b 100644
@@ -667,7 +667,7 @@ bool wlc_ps_check(wlc_info_t *wlc)
 		 * may be either true or false due to the low level override.
 		 */
 		wake = STAY_AWAKE(wlc);
-		wake_ok = (wake && ((tmp & MCTL_WAKE) != 0)) || !wake;
+		wake_ok = ((tmp & MCTL_WAKE) != 0) || !wake;
 #endif
 		if (hps && !wake_ok) {
 			WL_ERROR(("wl%d: wake not sync, sw %d maccontrol 0x%x\n", wlc->pub->unit, wake, tmp));
Signature · 1 line
1.7.2.2