Skip to content

Commit da8e981

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Remove HTIOTActIsDisableMCSTwoSpatialStream()
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>
1 parent 7db86ba commit da8e981

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ static void HTIOTPeerDetermine(struct rtllib_device *ieee)
207207
netdev_dbg(ieee->dev, "IOTPEER: %x\n", ht_info->IOTPeer);
208208
}
209209

210-
static bool HTIOTActIsDisableMCSTwoSpatialStream(struct rtllib_device *ieee)
211-
{
212-
return false;
213-
}
214-
215210
static u8 HTIOTActIsDisableEDCATurbo(struct rtllib_device *ieee,
216211
u8 *PeerMacAddr)
217212
{
@@ -686,10 +681,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
686681
HTIOTPeerDetermine(ieee);
687682

688683
ht_info->iot_action = 0;
689-
bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee);
690-
if (bIOTAction)
691-
ht_info->iot_action |= HT_IOT_ACT_DISABLE_ALL_2SS;
692-
693684
bIOTAction = HTIOTActIsDisableEDCATurbo(ieee, pNetwork->bssid);
694685
if (bIOTAction)
695686
ht_info->iot_action |= HT_IOT_ACT_DISABLE_EDCA_TURBO;

0 commit comments

Comments
 (0)