Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0afad48 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman
Browse files

staging: rtl8712: r8712_os_recv_resource_alloc(): Change return type



Change return type of function r8712_os_recv_resource_alloc from int to
void as its return value is never used.

Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190802064212.30476-1-nishkadg.linux@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6250a57e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -29,12 +29,11 @@

/*init os related resource in struct recv_priv*/
/*alloc os related resource in union recv_frame*/
int r8712_os_recv_resource_alloc(struct _adapter *padapter,
void r8712_os_recv_resource_alloc(struct _adapter *padapter,
				  union recv_frame *precvframe)
{
	precvframe->u.hdr.pkt_newalloc = NULL;
	precvframe->u.hdr.pkt = NULL;
	return _SUCCESS;
}

/*alloc os related resource in struct recv_buf*/
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup);
int r8712_init_recv_priv(struct recv_priv *precvpriv,
			 struct _adapter *padapter);
void r8712_free_recv_priv(struct recv_priv *precvpriv);
int r8712_os_recv_resource_alloc(struct _adapter *padapter,
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);