diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2013-11-08 03:07:03 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-10 09:11:16 -0800 |
commit | 821aa20462f655f052215df8afd61c4a012056f7 (patch) | |
tree | 103331e5ca427c2b9471496c263dfef9f00d7be5 /drivers/staging/rtl8187se | |
parent | Staging:rtl8187se: Add space before open parenthesis of if condition (diff) | |
download | linux-821aa20462f655f052215df8afd61c4a012056f7.tar.gz linux-821aa20462f655f052215df8afd61c4a012056f7.tar.bz2 linux-821aa20462f655f052215df8afd61c4a012056f7.zip |
Staging:rtl8187se: Remove unnecessary braces from if-else statement
This patch fixes the checkpatch.pl warning
braces {} are not necessary for any arm of this statement
in ieee80211/ieee80211_softmac.c.
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r-- | drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c index 7864267f7980..a5d0e54100ca 100644 --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c @@ -119,11 +119,10 @@ void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p) *tag++ = 0x00; *tag++ = 0x01; #ifdef SUPPORT_USPD - if (ieee->current_network.wmm_info & 0x80) { + if (ieee->current_network.wmm_info & 0x80) *tag++ = 0x0f|MAX_SP_Len; - } else { + else *tag++ = MAX_SP_Len; - } #else *tag++ = MAX_SP_Len; #endif |