Skip to content

Commit 0149f27

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove wrapper rtw_init_recv_timer
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>
1 parent 9f1dcad commit 0149f27

3 files changed

Lines changed: 3 additions & 11 deletions

File tree

drivers/staging/rtl8723bs/core/rtw_sta_mgt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
247247
INIT_LIST_HEAD(&preorder_ctrl->pending_recvframe_queue.queue);
248248
spin_lock_init(&preorder_ctrl->pending_recvframe_queue.lock);
249249

250-
rtw_init_recv_timer(preorder_ctrl);
250+
/* init recv timer */
251+
timer_setup(&preorder_ctrl->reordering_ctrl_timer,
252+
rtw_reordering_ctrl_timeout_handler, 0);
251253
}
252254

253255
/* init for DM */

drivers/staging/rtl8723bs/include/recv_osdep.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,4 @@ void rtw_os_recvbuf_resource_free(struct adapter *padapter, struct recv_buf *pre
3434
struct sk_buff *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 *pdata);
3535
void rtw_os_recv_indicate_pkt(struct adapter *padapter, struct sk_buff *pkt, struct rx_pkt_attrib *pattrib);
3636

37-
void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
38-
39-
4037
#endif /* */

drivers/staging/rtl8723bs/os_dep/recv_linux.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,3 @@ int rtw_recv_indicatepkt(struct adapter *padapter, union recv_frame *precv_frame
216216

217217
return _FAIL;
218218
}
219-
220-
void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl)
221-
{
222-
timer_setup(&preorder_ctrl->reordering_ctrl_timer,
223-
rtw_reordering_ctrl_timeout_handler, 0);
224-
225-
}

0 commit comments

Comments
 (0)