mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
staging: rtl8723bs: merge rtw_os_recv_resource_alloc into rtw_recv.c
Merge the functionality of rtw_os_recv_resource_alloc into _rtw_init_recv_priv to reduce code in the os_dep directory. Signed-off-by: Michael Straube <straube.linux@gmail.com> Reviewed-by: Hans de Goede <hansg@kernel.org> Link: https://lore.kernel.org/r/20250822135418.118115-6-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d91ccaaf09
commit
aec747851b
|
|
@ -66,7 +66,8 @@ signed int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *pada
|
|||
|
||||
list_add_tail(&(precvframe->u.list), &(precvpriv->free_recv_queue.queue));
|
||||
|
||||
rtw_os_recv_resource_alloc(padapter, precvframe);
|
||||
precvframe->u.hdr.pkt_newalloc = NULL;
|
||||
precvframe->u.hdr.pkt = NULL;
|
||||
|
||||
precvframe->u.hdr.len = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ int rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
|
|||
void rtw_free_recv_priv(struct recv_priv *precvpriv);
|
||||
|
||||
|
||||
void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe);
|
||||
void rtw_os_recv_resource_free(struct recv_priv *precvpriv);
|
||||
|
||||
void rtw_os_recvbuf_resource_free(struct adapter *padapter, struct recv_buf *precvbuf);
|
||||
|
|
|
|||
|
|
@ -9,12 +9,6 @@
|
|||
#include <net/cfg80211.h>
|
||||
#include <linux/unaligned.h>
|
||||
|
||||
/* alloc os related resource in union recv_frame */
|
||||
void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe)
|
||||
{
|
||||
precvframe->u.hdr.pkt_newalloc = precvframe->u.hdr.pkt = NULL;
|
||||
}
|
||||
|
||||
/* free os related resource in union recv_frame */
|
||||
void rtw_os_recv_resource_free(struct recv_priv *precvpriv)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user