mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
staging: rtl8188eu: remove unused function parameter
The struct adapter parameter of rtw_os_recvbuf_resource_alloc is not used. Remove it. While at it, use the same parameter name in the prototype and the function definition. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210408195601.4762-5-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f40e1901be
commit
dfb1a3ae1d
|
|
@ -38,7 +38,7 @@ int rtw_hal_init_recv_priv(struct adapter *padapter)
|
|||
precvbuf = precvpriv->precv_buf;
|
||||
|
||||
for (i = 0; i < NR_RECVBUFF; i++) {
|
||||
res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
|
||||
res = rtw_os_recvbuf_resource_alloc(precvbuf);
|
||||
if (res == _FAIL)
|
||||
break;
|
||||
precvbuf->adapter = padapter;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ int rtw_recv_indicatepkt(struct adapter *adapter,
|
|||
|
||||
void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup);
|
||||
|
||||
int rtw_os_recvbuf_resource_alloc(struct adapter *adapt, struct recv_buf *buf);
|
||||
int rtw_os_recvbuf_resource_alloc(struct recv_buf *precvbuf);
|
||||
|
||||
void rtw_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
#include <usb_ops_linux.h>
|
||||
|
||||
/* alloc os related resource in struct recv_buf */
|
||||
int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
|
||||
struct recv_buf *precvbuf)
|
||||
int rtw_os_recvbuf_resource_alloc(struct recv_buf *precvbuf)
|
||||
{
|
||||
precvbuf->pskb = NULL;
|
||||
precvbuf->reuse = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user