Skip to content

Commit 7db86ba

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Remove HTIOTActIsDisableMCS15()
Remove HTIOTActIsDisableMCS15() 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/004b43b098f14f82e9614578ea9f04ca95b48b4c.1698295861.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4c0be6c commit 7db86ba

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 HTIOTActIsDisableMCS15(struct rtllib_device *ieee)
211-
{
212-
return false;
213-
}
214-
215210
static bool HTIOTActIsDisableMCSTwoSpatialStream(struct rtllib_device *ieee)
216211
{
217212
return false;
@@ -691,10 +686,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
691686
HTIOTPeerDetermine(ieee);
692687

693688
ht_info->iot_action = 0;
694-
bIOTAction = HTIOTActIsDisableMCS15(ieee);
695-
if (bIOTAction)
696-
ht_info->iot_action |= HT_IOT_ACT_DISABLE_MCS15;
697-
698689
bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee);
699690
if (bIOTAction)
700691
ht_info->iot_action |= HT_IOT_ACT_DISABLE_ALL_2SS;

0 commit comments

Comments
 (0)