mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-03-31 22:49:56 +00:00
Remove function rtw_end_of_queue_search()
Port of 84660700807cbcd649c58ff8ce7f65021765b15c
This commit is contained in:
@@ -5227,7 +5227,7 @@ void session_tracker_chk_for_sta(_adapter *adapter, struct sta_info *sta)
|
||||
phead = &st_ctl->tracker_q.queue;
|
||||
plist = get_next(phead);
|
||||
pnext = get_next(plist);
|
||||
while (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
st = LIST_CONTAINOR(plist, struct session_tracker, list);
|
||||
plist = pnext;
|
||||
pnext = get_next(pnext);
|
||||
@@ -5263,7 +5263,7 @@ void session_tracker_chk_for_sta(_adapter *adapter, struct sta_info *sta)
|
||||
_exit_critical_bh(&st_ctl->tracker_q.lock, &irqL);
|
||||
|
||||
plist = get_next(&dlist);
|
||||
while (rtw_end_of_queue_search(&dlist, plist) == _FALSE) {
|
||||
while (&dlist != plist) {
|
||||
st = LIST_CONTAINOR(plist, struct session_tracker, list);
|
||||
plist = get_next(plist);
|
||||
rtw_mfree((u8 *)st, sizeof(struct session_tracker));
|
||||
@@ -5294,7 +5294,7 @@ void session_tracker_chk_for_adapter(_adapter *adapter)
|
||||
phead = &(stapriv->sta_hash[i]);
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
sta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
|
||||
plist = get_next(plist);
|
||||
|
||||
@@ -5352,7 +5352,7 @@ void session_tracker_cmd_hdl(_adapter *adapter, struct st_cmd_parm *parm)
|
||||
|
||||
phead = &st_ctl->tracker_q.queue;
|
||||
plist = get_next(phead);
|
||||
while (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
st = LIST_CONTAINOR(plist, struct session_tracker, list);
|
||||
|
||||
if (st->local_naddr == local_naddr
|
||||
@@ -5364,7 +5364,7 @@ void session_tracker_cmd_hdl(_adapter *adapter, struct st_cmd_parm *parm)
|
||||
plist = get_next(plist);
|
||||
}
|
||||
|
||||
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
|
||||
if (phead == plist)
|
||||
st = NULL;
|
||||
|
||||
switch (cmd) {
|
||||
|
||||
Reference in New Issue
Block a user