staging: r8188eu: remove rtw_os_recv_resource_alloc()
authorMichael Straube <straube.linux@gmail.com>
Sat, 8 Jan 2022 08:27:36 +0000 (09:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:15:52 +0000 (16:15 +0100)
Merge rtw_os_recv_resource_alloc() into _rtw_init_recv_priv() and
remove rtw_os_recv_resource_alloc().

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

index 26893f36d1ff82bba7e0ef98effb2525e0ccb566..5438a73ba06b8f0246d367821c05abb9f3dd6ef3 100644 (file)
@@ -70,7 +70,8 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
 
                list_add_tail(&precvframe->list, &precvpriv->free_recv_queue.queue);
 
-               res = rtw_os_recv_resource_alloc(padapter, precvframe);
+               precvframe->pkt_newalloc = NULL;
+               precvframe->pkt = NULL;
 
                precvframe->len = 0;
 
index 71fe581fbc85e821463cb5998d7b0da076e061df..ca8a613508fd15b6a369fe8f5086e4f27695d869 100644 (file)
@@ -19,8 +19,6 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup);
 int rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter);
 void rtw_free_recv_priv(struct recv_priv *precvpriv);
 
-int rtw_os_recv_resource_alloc(struct adapter *adapt, struct recv_frame *recvfr);
-
 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
 int rtw_os_recvbuf_resource_free(struct adapter *adapt, struct recv_buf *buf);
 
index da21490fe1689a3eb1da5b5832aa8a0b5d9d8460..b205c50e9d75535ef4f133cd99b9cf06a41b6926 100644 (file)
 #include "../include/osdep_intf.h"
 #include "../include/usb_ops.h"
 
-/* alloc os related resource in struct recv_frame */
-int rtw_os_recv_resource_alloc(struct adapter *padapter,
-               struct recv_frame *precvframe)
-{
-       precvframe->pkt_newalloc = NULL;
-       precvframe->pkt = NULL;
-       return _SUCCESS;
-}
-
 /* alloc os related resource in struct recv_buf */
 int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
                struct recv_buf *precvbuf)