staging: rtl8192e: Remove HTIOTActIsDisableMCSTwoSpatialStream()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Thu, 26 Oct 2023 05:43:46 +0000 (07:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2023 11:08:49 +0000 (13:08 +0200)
Remove HTIOTActIsDisableMCSTwoSpatialStream() as it always returns false
which leads to one evaluation that is always false. Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/a446837ff1107c81f52d3cf9e727d6ef4e2678af.1698295861.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HTProc.c

index ea01cfce77d8d37bd1d6ec286aaa7fc36371531b..3cbadd6a0aefefffe2ce54c86ebf884c4fdcb2a1 100644 (file)
@@ -207,11 +207,6 @@ static void HTIOTPeerDetermine(struct rtllib_device *ieee)
        netdev_dbg(ieee->dev, "IOTPEER: %x\n", ht_info->IOTPeer);
 }
 
-static bool HTIOTActIsDisableMCSTwoSpatialStream(struct rtllib_device *ieee)
-{
-       return false;
-}
-
 static u8 HTIOTActIsDisableEDCATurbo(struct rtllib_device *ieee,
                                     u8 *PeerMacAddr)
 {
@@ -686,10 +681,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
                HTIOTPeerDetermine(ieee);
 
                ht_info->iot_action = 0;
-               bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee);
-               if (bIOTAction)
-                       ht_info->iot_action |= HT_IOT_ACT_DISABLE_ALL_2SS;
-
                bIOTAction = HTIOTActIsDisableEDCATurbo(ieee, pNetwork->bssid);
                if (bIOTAction)
                        ht_info->iot_action |= HT_IOT_ACT_DISABLE_EDCA_TURBO;