Skip to content

Commit ac32633

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Remove HTIOTActIsDisableEDCATurbo()
Remove HTIOTActIsDisableEDCATurbo() 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/904ca224c6a0a1968012e131c0197a71e5b67f81.1698295861.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent da8e981 commit ac32633

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/staging/rtl8192e/rtl819x_HTProc.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +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 HTIOTActIsDisableEDCATurbo(struct rtllib_device *ieee,
211-
u8 *PeerMacAddr)
212-
{
213-
return false;
214-
}
215-
216210
static u8 HTIOTActIsMgntUseCCK6M(struct rtllib_device *ieee,
217211
struct rtllib_network *network)
218212
{
@@ -681,10 +675,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
681675
HTIOTPeerDetermine(ieee);
682676

683677
ht_info->iot_action = 0;
684-
bIOTAction = HTIOTActIsDisableEDCATurbo(ieee, pNetwork->bssid);
685-
if (bIOTAction)
686-
ht_info->iot_action |= HT_IOT_ACT_DISABLE_EDCA_TURBO;
687-
688678
bIOTAction = HTIOTActIsMgntUseCCK6M(ieee, pNetwork);
689679
if (bIOTAction)
690680
ht_info->iot_action |= HT_IOT_ACT_MGNT_USE_CCK_6M;

0 commit comments

Comments
 (0)