mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
staging: r8188eu: simplify the code to initialise inx
Simplify the code to initialise the inx array in function rtw_dequeue_xframe and make the code a tiny bit smaller. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/20230123205342.229589-7-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
36b7dd48b3
commit
ce2e8fa206
@@ -1384,15 +1384,11 @@ struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmi
|
||||
struct xmit_frame *pxmitframe = NULL;
|
||||
struct adapter *padapter = pxmitpriv->adapter;
|
||||
struct registry_priv *pregpriv = &padapter->registrypriv;
|
||||
int i, inx[4];
|
||||
|
||||
inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3;
|
||||
int i, inx[] = { 0, 1, 2, 3 };
|
||||
|
||||
if (pregpriv->wifi_spec == 1) {
|
||||
int j;
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
inx[j] = pxmitpriv->wmm_para_seq[j];
|
||||
for (i = 0; i < ARRAY_SIZE(inx); i++)
|
||||
inx[i] = pxmitpriv->wmm_para_seq[i];
|
||||
}
|
||||
|
||||
spin_lock_bh(&pxmitpriv->lock);
|
||||
|
||||
Reference in New Issue
Block a user