]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove unused _rtw_init_queue() function header
authorNikolay Kulikov <nikolayof23@gmail.com>
Tue, 7 Apr 2026 14:33:27 +0000 (17:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Apr 2026 11:01:54 +0000 (05:01 -0600)
The _rtw_init_queue() function header is declared in osdep_service.h,
but it is not defined anywhere and all the code using it is commented
out, so we can remove the header and the commented out code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260407143622.9767-3-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_recv.c
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
drivers/staging/rtl8723bs/core/rtw_xmit.c
drivers/staging/rtl8723bs/include/osdep_service.h

index f78194d508dfcd2b5d9db848d2b0dc602a01eae0..df9c59449de53718e7d65732e24cea403697870f 100644 (file)
@@ -21,9 +21,6 @@ void _rtw_init_sta_recv_priv(struct sta_recv_priv *psta_recvpriv)
 
        spin_lock_init(&psta_recvpriv->lock);
 
-       /* for (i = 0; i<MAX_RX_NUMBLKS; i++) */
-       /* _rtw_init_queue(&psta_recvpriv->blk_strms[i]); */
-
        INIT_LIST_HEAD(&psta_recvpriv->defrag_q.queue);
        spin_lock_init(&psta_recvpriv->defrag_q.lock);
 }
index 07a6db1d2317a1b6a4c37f4ea9d64f1a96b2092b..1e5bc9f4cd4ba0a83f07ac451a5d9dad9f740026 100644 (file)
@@ -67,7 +67,6 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
 
        spin_lock_init(&pstapriv->sta_hash_lock);
 
-       /* _rtw_init_queue(&pstapriv->asoc_q); */
        pstapriv->asoc_sta_count = 0;
        INIT_LIST_HEAD(&pstapriv->sleep_q.queue);
        spin_lock_init(&pstapriv->sleep_q.lock);
index c6cf23b9c98a0086870cfd8080d325afac02498c..9320ce86f1b92366ce46760e8ce4513a45f85085 100644 (file)
@@ -98,10 +98,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
        init_completion(&pxmitpriv->xmit_comp);
        init_completion(&pxmitpriv->terminate_xmitthread_comp);
 
-       /*
-        * Please insert all the queue initialization using _rtw_init_queue below
-        */
-
        pxmitpriv->adapter = padapter;
 
        INIT_LIST_HEAD(&pxmitpriv->be_pending.queue);
index 9392af8589956dfce51f3fb8aba9b70f43728548..664c67e48f06f3ce8ba3641cd33b45cb979b2e58 100644 (file)
@@ -60,8 +60,6 @@ int _rtw_netif_rx(struct net_device *ndev, struct sk_buff *skb);
 
 #define rtw_netif_rx(ndev, skb) _rtw_netif_rx(ndev, skb)
 
-extern void _rtw_init_queue(struct __queue     *pqueue);
-
 static inline void flush_signals_thread(void)
 {
        if (signal_pending(current))