Skip to content

Commit

Permalink
Staging: brcm80211: simplify expression
Browse files Browse the repository at this point in the history
Simplify: ((a && b) || !a) => (b || !a)

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Cc: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Nicolas Kaiser authored and Greg Kroah-Hartman committed Nov 9, 2010
1 parent a28792e commit 2578f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/sys/wlc_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,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));
Expand Down

0 comments on commit 2578f7e

Please sign in to comment.