]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove wrapper rtw_init_recv_timer
authorMichael Straube <straube.linux@gmail.com>
Fri, 22 Aug 2025 13:54:06 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:55:11 +0000 (15:55 +0200)
The function rtw_init_recv_timer in os_dep/recv_linux.c is jsut a wrapper
around timer_setup. Use timer_setup directly and remove the wrapper 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-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
drivers/staging/rtl8723bs/include/recv_osdep.h
drivers/staging/rtl8723bs/os_dep/recv_linux.c

index 4d51e6993ca2335d82b8927c5ef047ff536e6e5b..d1f6030799cb687c1338f6f49adc582727ced467 100644 (file)
@@ -247,7 +247,9 @@ struct      sta_info *rtw_alloc_stainfo(struct      sta_priv *pstapriv, u8 *hwaddr)
                        INIT_LIST_HEAD(&preorder_ctrl->pending_recvframe_queue.queue);
                        spin_lock_init(&preorder_ctrl->pending_recvframe_queue.lock);
 
-                       rtw_init_recv_timer(preorder_ctrl);
+                       /* init recv timer */
+                       timer_setup(&preorder_ctrl->reordering_ctrl_timer,
+                                   rtw_reordering_ctrl_timeout_handler, 0);
                }
 
                /* init for DM */
index 83330ea98fbf7381b28ec82d85dc72c452be6f7a..ea0b58aa0ba057a8595913b2602b5ef2f587e3ee 100644 (file)
@@ -34,7 +34,4 @@ void rtw_os_recvbuf_resource_free(struct adapter *padapter, struct recv_buf *pre
 struct sk_buff *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
 void rtw_os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, struct rx_pkt_attrib *pattrib);
 
-void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
-
-
 #endif /*  */
index 98d3e477721057d7a5f4659179b5575591d70cc2..a507a29686bda285c88b56f42a3a3ae1f4f78ba9 100644 (file)
@@ -216,10 +216,3 @@ _recv_indicatepkt_drop:
 
        return _FAIL;
 }
-
-void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl)
-{
-       timer_setup(&preorder_ctrl->reordering_ctrl_timer,
-                   rtw_reordering_ctrl_timeout_handler, 0);
-
-}