]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:r8188eu: remove rtw_os_recv_resource_alloc function
authorIvan Safonov <insafonov@gmail.com>
Fri, 7 Oct 2016 18:01:00 +0000 (01:01 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:25:14 +0000 (10:25 +0200)
This simple function does not allocate any resource.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/include/recv_osdep.h
drivers/staging/rtl8188eu/os_dep/recv_linux.c

index b87cbbbee0549284ad36c120b4bbdc07ec52ab5c..65ae11ed6b7ce11ce2af735ba99c95ba211eaee8 100644 (file)
@@ -83,8 +83,7 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
                list_add_tail(&(precvframe->list),
                                     &(precvpriv->free_recv_queue.queue));
 
-               rtw_os_recv_resource_alloc(precvframe);
-
+               precvframe->pkt = NULL;
                precvframe->len = 0;
 
                precvframe->adapter = padapter;
index 7550d58f6b5b23cbbd51b75cc02aed2b050388a4..9b43a1314bd5e80111c8cbf1468348ec966b2c8e 100644 (file)
@@ -29,8 +29,6 @@ int rtw_recv_indicatepkt(struct adapter *adapter,
 
 void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup);
 
-void rtw_os_recv_resource_alloc(struct recv_frame *recvfr);
-
 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
 
 void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
index 103cdb4ed0736c83fca2965c5cbb1e3fa6ba02ef..b85824ec5354c62a6985d92100aa99512377fb17 100644 (file)
 #include <osdep_intf.h>
 #include <usb_ops_linux.h>
 
-/* alloc os related resource in struct recv_frame */
-void rtw_os_recv_resource_alloc(struct recv_frame *precvframe)
-{
-       precvframe->pkt = NULL;
-}
-
 /* alloc os related resource in struct recv_buf */
 int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
                                  struct recv_buf *precvbuf)