Skip to content

Commit

Permalink
staging: brcm80211: combined if statements
Browse files Browse the repository at this point in the history
Combined if statements in brcms_c_edcf_setparams and brcms_c_wme_setparams functions.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alwin Beukers authored and Greg Kroah-Hartman committed Oct 5, 2011
1 parent fa1b6ab commit 0f90d23
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/staging/brcm80211/brcmsmac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4186,12 +4186,10 @@ void brcms_c_wme_setparams(struct brcms_c_info *wlc, u16 aci,
*shm_entry++);
}

if (suspend)
if (suspend) {
brcms_c_suspend_mac_and_wait(wlc);

if (suspend)
brcms_c_enable_mac(wlc);

}
}

void brcms_c_edcf_setparams(struct brcms_c_info *wlc, bool suspend)
Expand Down Expand Up @@ -4223,12 +4221,10 @@ void brcms_c_edcf_setparams(struct brcms_c_info *wlc, bool suspend)
brcms_c_wme_setparams(wlc, aci, &txq_pars, suspend);
}

if (suspend)
if (suspend) {
brcms_c_suspend_mac_and_wait(wlc);

if (suspend)
brcms_c_enable_mac(wlc);

}
}

/* maintain LED behavior in down state */
Expand Down

0 comments on commit 0f90d23

Please sign in to comment.