Skip to content

Commit 4c0be6c

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Remove HTIOTActIsDisableMCS14()
Remove HTIOTActIsDisableMCS14() as it always returns zero 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/7ff3c7f8daf9bccb004129fdc1128ca0b0cb4e70.1698295861.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ae094de commit 4c0be6c

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 u8 HTIOTActIsDisableMCS14(struct rtllib_device *ieee, u8 *PeerMacAddr)
211-
{
212-
return 0;
213-
}
214-
215210
static bool HTIOTActIsDisableMCS15(struct rtllib_device *ieee)
216211
{
217212
return false;
@@ -696,10 +691,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
696691
HTIOTPeerDetermine(ieee);
697692

698693
ht_info->iot_action = 0;
699-
bIOTAction = HTIOTActIsDisableMCS14(ieee, pNetwork->bssid);
700-
if (bIOTAction)
701-
ht_info->iot_action |= HT_IOT_ACT_DISABLE_MCS14;
702-
703694
bIOTAction = HTIOTActIsDisableMCS15(ieee);
704695
if (bIOTAction)
705696
ht_info->iot_action |= HT_IOT_ACT_DISABLE_MCS15;

0 commit comments

Comments
 (0)