Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging:r8188eu: remove rtw_os_recv_resource_alloc function

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>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
bb5cd2e5 3a542007

+1 -10
+1 -2
drivers/staging/rtl8188eu/core/rtw_recv.c
··· 83 83 list_add_tail(&(precvframe->list), 84 84 &(precvpriv->free_recv_queue.queue)); 85 85 86 - rtw_os_recv_resource_alloc(precvframe); 87 - 86 + precvframe->pkt = NULL; 88 87 precvframe->len = 0; 89 88 90 89 precvframe->adapter = padapter;
-2
drivers/staging/rtl8188eu/include/recv_osdep.h
··· 29 29 30 30 void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup); 31 31 32 - void rtw_os_recv_resource_alloc(struct recv_frame *recvfr); 33 - 34 32 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf); 35 33 36 34 void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
-6
drivers/staging/rtl8188eu/os_dep/recv_linux.c
··· 21 21 #include <osdep_intf.h> 22 22 #include <usb_ops_linux.h> 23 23 24 - /* alloc os related resource in struct recv_frame */ 25 - void rtw_os_recv_resource_alloc(struct recv_frame *precvframe) 26 - { 27 - precvframe->pkt = NULL; 28 - } 29 - 30 24 /* alloc os related resource in struct recv_buf */ 31 25 int rtw_os_recvbuf_resource_alloc(struct adapter *padapter, 32 26 struct recv_buf *precvbuf)