staging: rtl8712: r8712_os_recvbuf_resource_free(): Change return type
Change return type of r8712_os_recvbuf_resource_free from int to void as it always returns _SUCCESS and this return value is never stored, checked or otherwise used. Remove return statement accordingly. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190802064212.30476-5-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
14b4302ff0
commit
dcca75a495
|
@ -59,7 +59,7 @@ int r8712_os_recvbuf_resource_alloc(struct _adapter *padapter,
|
|||
}
|
||||
|
||||
/*free os related resource in struct recv_buf*/
|
||||
int r8712_os_recvbuf_resource_free(struct _adapter *padapter,
|
||||
void r8712_os_recvbuf_resource_free(struct _adapter *padapter,
|
||||
struct recv_buf *precvbuf)
|
||||
{
|
||||
if (precvbuf->pskb)
|
||||
|
@ -68,7 +68,6 @@ int r8712_os_recvbuf_resource_free(struct _adapter *padapter,
|
|||
usb_kill_urb(precvbuf->purb);
|
||||
usb_free_urb(precvbuf->purb);
|
||||
}
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
void r8712_handle_tkip_mic_err(struct _adapter *adapter, u8 bgroup)
|
||||
|
|
|
@ -32,7 +32,7 @@ void r8712_os_recv_resource_alloc(struct _adapter *padapter,
|
|||
union recv_frame *precvframe);
|
||||
int r8712_os_recvbuf_resource_alloc(struct _adapter *padapter,
|
||||
struct recv_buf *precvbuf);
|
||||
int r8712_os_recvbuf_resource_free(struct _adapter *padapter,
|
||||
void r8712_os_recvbuf_resource_free(struct _adapter *padapter,
|
||||
struct recv_buf *precvbuf);
|
||||
void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue