staging: rtl8723au: Remove redundant check
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:03:28 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:11:57 +0000 (13:11 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index f8e10b1e192c70dc303ed819196b79506fb81d9f..161a2eb1363edeaf1f09fd17c5c41a8a61843b29 100644 (file)
@@ -1414,7 +1414,7 @@ void update_tx_basic_rate23a(struct rtw_adapter *padapter, u8 wirelessmode)
 
        memset(supported_rates, 0, NDIS_802_11_LENGTH_RATES_EX);
 
-       if ((wirelessmode & WIRELESS_11B) && (wirelessmode == WIRELESS_11B)) {
+       if (wirelessmode == WIRELESS_11B) {
                memcpy(supported_rates, rtw_basic_rate_cck, 4);
        } else if (wirelessmode & WIRELESS_11B) {
                memcpy(supported_rates, rtw_basic_rate_mix, 7);