mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 14:03:05 +00:00
rtl8188eu: Replace LIST_CONTAINOR with container_of
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
7fd86158bf
commit
567257655f
13 changed files with 61 additions and 64 deletions
|
@ -1245,7 +1245,7 @@ struct xmit_buf *rtw_alloc_xmitbuf_ext(struct xmit_priv *pxmitpriv)
|
|||
|
||||
plist = get_next(phead);
|
||||
|
||||
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
||||
pxmitbuf = container_of(plist, struct xmit_buf, list);
|
||||
|
||||
rtw_list_delete(&(pxmitbuf->list));
|
||||
}
|
||||
|
@ -1305,7 +1305,7 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv)
|
|||
|
||||
plist = get_next(phead);
|
||||
|
||||
pxmitbuf = LIST_CONTAINOR(plist, struct xmit_buf, list);
|
||||
pxmitbuf = container_of(plist, struct xmit_buf, list);
|
||||
|
||||
rtw_list_delete(&(pxmitbuf->list));
|
||||
}
|
||||
|
@ -1386,7 +1386,7 @@ struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv)/* _queue *pf
|
|||
|
||||
plist = get_next(phead);
|
||||
|
||||
pxframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
pxframe = container_of(plist, struct xmit_frame, list);
|
||||
|
||||
rtw_list_delete(&(pxframe->list));
|
||||
}
|
||||
|
@ -1462,7 +1462,7 @@ void rtw_free_xmitframe_queue(struct xmit_priv *pxmitpriv, struct __queue *pfram
|
|||
plist = get_next(phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(phead, plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(plist, struct xmit_frame, list);
|
||||
|
||||
plist = get_next(plist);
|
||||
|
||||
|
@ -1493,7 +1493,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv, str
|
|||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
if (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
|
@ -1533,7 +1533,7 @@ struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmi
|
|||
sta_plist = get_next(sta_phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(sta_phead, sta_plist)) {
|
||||
ptxservq = LIST_CONTAINOR(sta_plist, struct tx_servq, tx_pending);
|
||||
ptxservq = container_of(sta_plist, struct tx_servq, tx_pending);
|
||||
|
||||
pframe_queue = &ptxservq->sta_pending;
|
||||
|
||||
|
@ -2032,7 +2032,7 @@ static void dequeue_xmitframes_to_sleeping_queue(struct adapter *padapter, struc
|
|||
plist = get_next(phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(phead, plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(plist, struct xmit_frame, list);
|
||||
|
||||
plist = get_next(plist);
|
||||
|
||||
|
@ -2099,7 +2099,7 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta)
|
|||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
|
@ -2180,7 +2180,7 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta)
|
|||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
|
@ -2227,7 +2227,7 @@ void xmit_delivery_enabled_frames(struct adapter *padapter, struct sta_info *pst
|
|||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
xmitframe_plist = get_next(xmitframe_plist);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue