]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: hal: Drop condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Wed, 21 Aug 2019 18:02:01 +0000 (23:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:24:46 +0000 (10:24 +0200)
As the "else if" and "else" branch body are identical the condition
has no effect. So drop the else if condition.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20190821180153.GA10678@saurav
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_btcoex.c

index 19486f0e0eadc7ee8903f89da6f646d79253607d..6e4a1fcb87905e0d2ac17c50594e41f713d726c5 100644 (file)
@@ -482,10 +482,8 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
                        *pU4Tmp = BTC_WIFI_BW_LEGACY;
                else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_20)
                        *pU4Tmp = BTC_WIFI_BW_HT20;
-               else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_40)
-                       *pU4Tmp = BTC_WIFI_BW_HT40;
                else
-                       *pU4Tmp = BTC_WIFI_BW_HT40; /* todo */
+                       *pU4Tmp = BTC_WIFI_BW_HT40;
                break;
 
        case BTC_GET_U4_WIFI_TRAFFIC_DIRECTION: