mirror of https://gitee.com/openkylin/linux.git
staging:r8188eu: remove prhdr local variable from rtw_free_stainfo function
This variable is unnecessary. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
175fa9a7a8
commit
aaa27e8c4a
|
@ -310,7 +310,6 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta)
|
||||||
/* for A-MPDU Rx reordering buffer control, cancel reordering_ctrl_timer */
|
/* for A-MPDU Rx reordering buffer control, cancel reordering_ctrl_timer */
|
||||||
for (i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
struct list_head *phead, *plist;
|
struct list_head *phead, *plist;
|
||||||
struct recv_frame *prhdr;
|
|
||||||
struct recv_frame *prframe;
|
struct recv_frame *prframe;
|
||||||
struct __queue *ppending_recvframe_queue;
|
struct __queue *ppending_recvframe_queue;
|
||||||
struct __queue *pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
|
struct __queue *pfree_recv_queue = &padapter->recvpriv.free_recv_queue;
|
||||||
|
@ -327,8 +326,7 @@ u32 rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta)
|
||||||
plist = phead->next;
|
plist = phead->next;
|
||||||
|
|
||||||
while (!list_empty(phead)) {
|
while (!list_empty(phead)) {
|
||||||
prhdr = container_of(plist, struct recv_frame, list);
|
prframe = container_of(plist, struct recv_frame, list);
|
||||||
prframe = (struct recv_frame *)prhdr;
|
|
||||||
|
|
||||||
plist = plist->next;
|
plist = plist->next;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue