Commit e205cae2 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: Remove 'irp_pending' from struct recv_buf

irp_pending is initialized to false inside rtw_os_recvbuf_resource_alloc()
and value of irq_pending never changed after that, so 'if (!precvbuf->irp_pending)'
inside rtw_os_read_port() function will be always true.
Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c11f3fff
...@@ -242,7 +242,6 @@ struct recv_buf { ...@@ -242,7 +242,6 @@ struct recv_buf {
u32 len; u32 len;
struct urb *purb; struct urb *purb;
u32 alloc_sz; u32 alloc_sz;
u8 irp_pending;
struct sk_buff *pskb; struct sk_buff *pskb;
u8 reuse; u8 reuse;
}; };
......
...@@ -55,7 +55,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter, ...@@ -55,7 +55,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
{ {
int res = _SUCCESS; int res = _SUCCESS;
precvbuf->irp_pending = false;
precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL);
if (precvbuf->purb == NULL) if (precvbuf->purb == NULL)
res = _FAIL; res = _FAIL;
...@@ -229,7 +228,6 @@ void rtw_os_read_port(struct adapter *padapter, struct recv_buf *precvbuf) ...@@ -229,7 +228,6 @@ void rtw_os_read_port(struct adapter *padapter, struct recv_buf *precvbuf)
dev_kfree_skb_any(precvbuf->pskb); dev_kfree_skb_any(precvbuf->pskb);
precvbuf->pskb = NULL; precvbuf->pskb = NULL;
precvbuf->reuse = false; precvbuf->reuse = false;
if (!precvbuf->irp_pending)
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, rtw_read_port(padapter, precvpriv->ff_hwaddr, 0,
(unsigned char *)precvbuf); (unsigned char *)precvbuf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment