提交 8a889aee 编写于 作者: F Fabian Frederick 提交者: Greg Kroah-Hartman

Staging: rtl8188eu: use swap() in WMMOnAssocRsp()

Use kernel.h macro definition.

Thanks to Julia Lawall for Coccinelle scripting support.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 32215eaa
...@@ -603,7 +603,7 @@ void WMMOnAssocRsp(struct adapter *padapter) ...@@ -603,7 +603,7 @@ void WMMOnAssocRsp(struct adapter *padapter)
inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3; inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3;
if (pregpriv->wifi_spec == 1) { if (pregpriv->wifi_spec == 1) {
u32 j, tmp, change_inx = false; u32 j, change_inx = false;
/* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */ /* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
...@@ -618,14 +618,8 @@ void WMMOnAssocRsp(struct adapter *padapter) ...@@ -618,14 +618,8 @@ void WMMOnAssocRsp(struct adapter *padapter)
} }
if (change_inx) { if (change_inx) {
tmp = edca[i]; swap(edca[i], edca[j]);
edca[i] = edca[j]; swap(inx[i], inx[j]);
edca[j] = tmp;
tmp = inx[i];
inx[i] = inx[j];
inx[j] = tmp;
change_inx = false; change_inx = false;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册