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: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
35a5c6f3a3
commit
09ae6d750c
3 changed files with 0 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue