Staging:rtl8187se: Remove unnecessary braces from if-else statement
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 7 Nov 2013 21:37:03 +0000 (03:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2013 17:11:16 +0000 (09:11 -0800)
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>
drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c

index 7864267f7980363169540ccc6457b6f7d74dcf98..a5d0e54100cab117cd9f3485ec8fd4a6ea93c14b 100644 (file)
@@ -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