]> www.infradead.org Git - users/hch/misc.git/commitdiff
staging: rtl8723bs: merge rtw_os_free_recvframe into rtw_recv.c
authorMichael Straube <straube.linux@gmail.com>
Fri, 22 Aug 2025 13:54:09 +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_free_recvframe in os_dep/recv_linux.c
into rtw_free_recvframe in core/rtw_recv.c 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-5-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 b043e3d1cd82d63e5a00cedc9e9bf0d920fb1c1f..2b054525b3fda275126aab65f4f826c16896895b 100644 (file)
@@ -147,8 +147,10 @@ int rtw_free_recvframe(union recv_frame *precvframe, struct __queue *pfree_recv_
        struct adapter *padapter = precvframe->u.hdr.adapter;
        struct recv_priv *precvpriv = &padapter->recvpriv;
 
-       rtw_os_free_recvframe(precvframe);
-
+       if (precvframe->u.hdr.pkt) {
+               dev_kfree_skb_any(precvframe->u.hdr.pkt);/* free skb by driver */
+               precvframe->u.hdr.pkt = NULL;
+       }
 
        spin_lock_bh(&pfree_recv_queue->lock);
 
index 91fb275cbcaff2233ecb577d9b8da71352d4e1ff..51b52d6b03676b20f7c64b79c580115a102199a3 100644 (file)
@@ -22,10 +22,6 @@ 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_free_recvframe(union recv_frame *precvframe);
-
-
 void rtw_os_recvbuf_resource_free(struct adapter *padapter, struct recv_buf *precvbuf);
 
 struct sk_buff *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
index 72fd86e03b5c346afa4e8ff70499da44a10571ef..c5819c3c59d8cfcbfea1d91a76e9f9d7912120d8 100644 (file)
@@ -9,15 +9,6 @@
 #include <net/cfg80211.h>
 #include <linux/unaligned.h>
 
-void rtw_os_free_recvframe(union recv_frame *precvframe)
-{
-       if (precvframe->u.hdr.pkt) {
-               dev_kfree_skb_any(precvframe->u.hdr.pkt);/* free skb by driver */
-
-               precvframe->u.hdr.pkt = NULL;
-       }
-}
-
 /* alloc os related resource in union recv_frame */
 void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe)
 {