提交 09ae6d75 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: Remove unnecessary abstraction rtw_os_recv_resource_alloc23a()

No point calling a function to NULL a pointer that was just cleared in
the malloc call.
Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 35a5c6f3
......@@ -79,8 +79,6 @@ int _rtw_init_recv_priv23a(struct recv_priv *precvpriv,
list_add_tail(&precvframe->list,
&precvpriv->free_recv_queue.queue);
res = rtw_os_recv_resource_alloc23a(padapter, precvframe);
precvframe->adapter = padapter;
precvframe++;
}
......
......@@ -32,8 +32,6 @@ int rtw_init_recv_priv(struct recv_priv *precvpriv, struct rtw_adapter *padapter
void rtw_free_recv_priv (struct recv_priv *precvpriv);
int rtw_os_recv_resource_init(struct recv_priv *precvpriv, struct rtw_adapter *padapter);
int rtw_os_recv_resource_alloc23a(struct rtw_adapter *padapter, struct recv_frame *precvframe);
void rtw_os_recv_resource_free(struct recv_priv *precvpriv);
int rtw_os_recvbuf_resource_alloc23a(struct rtw_adapter *padapter, struct recv_buf *precvbuf);
int rtw_os_recvbuf_resource_free23a(struct rtw_adapter *padapter, struct recv_buf *precvbuf);
......
......@@ -24,17 +24,6 @@
#include <usb_ops.h>
/* alloc os related resource in struct recv_frame */
int rtw_os_recv_resource_alloc23a(struct rtw_adapter *padapter,
struct recv_frame *precvframe)
{
int res = _SUCCESS;
precvframe->pkt = NULL;
return res;
}
/* alloc os related resource in struct recv_buf */
int rtw_os_recvbuf_resource_alloc23a(struct rtw_adapter *padapter,
struct recv_buf *precvbuf)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册