mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove function rtw_end_of_queue_search()
Port of 84660700807cbcd649c58ff8ce7f65021765b15c
This commit is contained in:
@@ -3656,7 +3656,7 @@ void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv, _queue *pframequeue)
|
||||
phead = get_list_head(pframequeue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
|
||||
@@ -3688,7 +3688,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv, str
|
||||
xmitframe_phead = get_list_head(pframe_queue);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
|
||||
while (xmitframe_phead != xmitframe_plist) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
/* xmitframe_plist = get_next(xmitframe_plist); */
|
||||
@@ -3730,7 +3730,7 @@ static struct xmit_frame *get_one_xmitframe(struct xmit_priv *pxmitpriv, struct
|
||||
xmitframe_phead = get_list_head(pframe_queue);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
|
||||
while (xmitframe_phead != xmitframe_plist) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
break;
|
||||
}
|
||||
@@ -3773,7 +3773,7 @@ struct xmit_frame *rtw_get_xframe(struct xmit_priv *pxmitpriv, int *num_frame)
|
||||
sta_phead = get_list_head(phwxmit->sta_queue);
|
||||
sta_plist = get_next(sta_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(sta_phead, sta_plist)) == _FALSE) {
|
||||
while (sta_phead != sta_plist) {
|
||||
|
||||
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq, tx_pending);
|
||||
pframe_queue = &ptxservq->sta_pending;
|
||||
@@ -3839,7 +3839,7 @@ struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmi
|
||||
sta_phead = get_list_head(phwxmit->sta_queue);
|
||||
sta_plist = get_next(sta_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(sta_phead, sta_plist)) == _FALSE) {
|
||||
while (sta_phead != sta_plist) {
|
||||
|
||||
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq, tx_pending);
|
||||
|
||||
@@ -4598,7 +4598,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
||||
_list *list = get_next(&b2u_list);
|
||||
struct xmit_frame *b2uframe;
|
||||
|
||||
while ((rtw_end_of_queue_search(&b2u_list, list)) == _FALSE) {
|
||||
while (&b2u_list != list) {
|
||||
b2uframe = LIST_CONTAINOR(list, struct xmit_frame, list);
|
||||
list = get_next(list);
|
||||
rtw_list_delete(&b2uframe->list);
|
||||
@@ -4930,7 +4930,7 @@ static void dequeue_xmitframes_to_sleeping_queue(_adapter *padapter, struct sta_
|
||||
phead = get_list_head(pframequeue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
|
||||
plist = get_next(plist);
|
||||
@@ -5028,7 +5028,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
||||
xmitframe_phead = get_list_head(&psta->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
|
||||
while (xmitframe_phead != xmitframe_plist) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
@@ -5128,7 +5128,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
||||
xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
|
||||
while (xmitframe_phead != xmitframe_plist) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
@@ -5203,7 +5203,7 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
|
||||
xmitframe_phead = get_list_head(&psta->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
|
||||
while (xmitframe_phead != xmitframe_plist) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
Reference in New Issue
Block a user