staging: r8188eu: remove rtw_enqueue_recvbuf_to_head()
authorMichael Straube <straube.linux@gmail.com>
Wed, 22 Sep 2021 20:04:17 +0000 (22:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Sep 2021 15:29:42 +0000 (17:29 +0200)
Function rtw_enqueue_recvbuf_to_head() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-45-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/include/rtw_recv.h

index 1e05437a1a8dedc07cf3384b1810123701e93df7..3f0c4d9d239df6da53b1d6924b87178a5dfdf8f7 100644 (file)
@@ -257,18 +257,6 @@ u32 rtw_free_uc_swdec_pending_queue(struct adapter *adapter)
        return cnt;
 }
 
-int rtw_enqueue_recvbuf_to_head(struct recv_buf *precvbuf, struct __queue *queue)
-{
-       spin_lock_bh(&queue->lock);
-
-       list_del_init(&precvbuf->list);
-       list_add(&precvbuf->list, get_list_head(queue));
-
-       spin_unlock_bh(&queue->lock);
-
-       return _SUCCESS;
-}
-
 static int recvframe_chkmic(struct adapter *adapter,  struct recv_frame *precvframe)
 {
        int     i, res = _SUCCESS;
index 065942e816c653883d9c5708c7c88aa66d94edf4..d35a9276350fb05bcac4a90e8b93aab506357bed 100644 (file)
@@ -284,7 +284,6 @@ int rtw_enqueue_recvframe(struct recv_frame *precvframe, struct __queue *queue);
 void rtw_free_recvframe_queue(struct __queue *pframequeue,
                              struct __queue *pfree_recv_queue);
 u32 rtw_free_uc_swdec_pending_queue(struct adapter *adapter);
-int rtw_enqueue_recvbuf_to_head(struct recv_buf *buf, struct __queue *queue);
 
 void rtw_reordering_ctrl_timeout_handler(void *pcontext);