mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 16:29:25 -04:00
staging: r8188eu: EfuseUsedBytes is set but never used
The field EfuseUsedBytes of struct hal_data_8188e is set but never used. Remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20220107215033.12257-6-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
762e47b34b
commit
dce7cbb4e1
@@ -498,9 +498,6 @@ static void Hal_EfuseReadEFuse88E(struct adapter *Adapter,
|
||||
for (i = 0; i < _size_byte; i++)
|
||||
pbuf[i] = efuseTbl[_offset + i];
|
||||
|
||||
/* 5. Calculate Efuse utilization. */
|
||||
SetHwReg8188EU(Adapter, HW_VAR_EFUSE_BYTES, (u8 *)&eFuse_Addr);
|
||||
|
||||
exit:
|
||||
kfree(efuseTbl);
|
||||
kfree(eFuseWord);
|
||||
|
||||
@@ -1530,9 +1530,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
||||
}
|
||||
}
|
||||
break;
|
||||
case HW_VAR_EFUSE_BYTES: /* To set EFUE total used bytes, added by Roger, 2008.12.22. */
|
||||
haldata->EfuseUsedBytes = *((u16 *)val);
|
||||
break;
|
||||
case HW_VAR_FIFO_CLEARN_UP:
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = &Adapter->pwrctrlpriv;
|
||||
|
||||
@@ -59,7 +59,6 @@ enum hw_variables {
|
||||
HW_VAR_ANTENNA_DIVERSITY_SELECT,
|
||||
HW_VAR_SWITCH_EPHY_WoWLAN,
|
||||
HW_VAR_EFUSE_USAGE,
|
||||
HW_VAR_EFUSE_BYTES,
|
||||
HW_VAR_EFUSE_BT_USAGE,
|
||||
HW_VAR_EFUSE_BT_BYTES,
|
||||
HW_VAR_FIFO_CLEARN_UP,
|
||||
|
||||
@@ -216,8 +216,6 @@ struct hal_data_8188e {
|
||||
u8 OutEpQueueSel;
|
||||
u8 OutEpNumber;
|
||||
|
||||
u16 EfuseUsedBytes;
|
||||
|
||||
struct P2P_PS_Offload_t p2p_ps_offload;
|
||||
|
||||
/* Auto FSM to Turn On, include clock, isolation, power control
|
||||
|
||||
Reference in New Issue
Block a user