staging: rtl8188eu: remove unused argument
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 7 Aug 2015 10:36:28 +0000 (16:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:17:58 +0000 (15:17 -0700)
The function rtw_os_recv_resource_alloc() only uses the argument
struct recv_frame *. So remove the other unused argument.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
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 8501eb89882491126ea4521a2dacb52124eda16f..cce07463efb6d25c14dad3a076d5ed774c2fe162 100644 (file)
@@ -89,7 +89,7 @@ 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);
+               res = rtw_os_recv_resource_alloc(precvframe);
 
                precvframe->len = 0;
 
index 0809963ce6aa890a8f6571ebca9ad927fb432b79..0f3200567758c998b5595cb325ffb63fa4159af4 100644 (file)
@@ -38,8 +38,7 @@ 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_recv_resource_alloc(struct recv_frame *recvfr);
 
 int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
 
index 05701328dce408bf63d9827b42f39d998f49095b..4849e6b87a21bb5ad2f2bf74bcf50a7531ae6a6a 100644 (file)
@@ -29,8 +29,7 @@
 #include <usb_ops_linux.h>
 
 /* alloc os related resource in struct recv_frame */
-int rtw_os_recv_resource_alloc(struct adapter *padapter,
-                              struct recv_frame *precvframe)
+int rtw_os_recv_resource_alloc(struct recv_frame *precvframe)
 {
        precvframe->pkt_newalloc = NULL;
        precvframe->pkt = NULL;