mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 01:25:39 +01:00
staging: r8188eu: remove OutEpNumber
Remove the OutEpNumber component of struct hal_data_8188e. RtNumOutPipes in struct dvobj_priv stores the same info. Update the only place where OutEpNumber is read. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220806195540.777390-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
897155c795
commit
2ea2f91b28
|
|
@ -110,17 +110,14 @@ int rtl8188eu_interface_configure(struct adapter *adapt)
|
|||
switch (pdvobjpriv->RtNumOutPipes) {
|
||||
case 3:
|
||||
haldata->OutEpQueueSel = TX_SELE_HQ | TX_SELE_LQ | TX_SELE_NQ;
|
||||
haldata->OutEpNumber = 3;
|
||||
three_out_pipe(adapt, wifi_cfg);
|
||||
break;
|
||||
case 2:
|
||||
haldata->OutEpQueueSel = TX_SELE_HQ | TX_SELE_NQ;
|
||||
haldata->OutEpNumber = 2;
|
||||
two_out_pipe(adapt, wifi_cfg);
|
||||
break;
|
||||
case 1:
|
||||
haldata->OutEpQueueSel = TX_SELE_HQ;
|
||||
haldata->OutEpNumber = 1;
|
||||
one_out_pipe(adapt);
|
||||
break;
|
||||
default:
|
||||
|
|
@ -358,9 +355,9 @@ static void _InitNormalChipThreeOutEpPriority(struct adapter *Adapter)
|
|||
|
||||
static void _InitQueuePriority(struct adapter *Adapter)
|
||||
{
|
||||
struct hal_data_8188e *haldata = &Adapter->haldata;
|
||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(Adapter);
|
||||
|
||||
switch (haldata->OutEpNumber) {
|
||||
switch (pdvobjpriv->RtNumOutPipes) {
|
||||
case 1:
|
||||
_InitNormalChipOneOutEpPriority(Adapter);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -150,7 +150,6 @@ struct hal_data_8188e {
|
|||
u8 TRxAntDivType;
|
||||
|
||||
u8 OutEpQueueSel;
|
||||
u8 OutEpNumber;
|
||||
|
||||
struct P2P_PS_Offload_t p2p_ps_offload;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user