]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: merge rtw_os_recv_resource_alloc into rtw_recv.c
authorMichael Straube <straube.linux@gmail.com>
Fri, 22 Aug 2025 13:54:10 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:55:12 +0000 (15:55 +0200)
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>
drivers/staging/rtl8723bs/core/rtw_recv.c
drivers/staging/rtl8723bs/include/recv_osdep.h
drivers/staging/rtl8723bs/os_dep/recv_linux.c

index 2b054525b3fda275126aab65f4f826c16896895b..fcc28d4556c53c497ccd0622d9cbed1c8d0d0850 100644 (file)
@@ -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;
 
index 51b52d6b03676b20f7c64b79c580115a102199a3..763ddef4ad90f76d18c074347b53eac79297be43 100644 (file)
@@ -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);
index c5819c3c59d8cfcbfea1d91a76e9f9d7912120d8..ccd00f8bee7e508b1dde82da5efbe963e0b7612d 100644 (file)
@@ -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)
 {