From: Jes Sorensen Date: Fri, 9 May 2014 13:03:28 +0000 (+0200) Subject: staging: rtl8723au: Remove redundant check X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~993 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ff516e707691c8d56585bcad47a987eabe115b44;p=firefly-linux-kernel-4.4.55.git staging: rtl8723au: Remove redundant check Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index f8e10b1e192c..161a2eb1363e 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -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);