All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] staging: rtl8712: r8712_os_recv_resource_alloc(): Change return type
@ 2019-08-02  6:42 Nishka Dasgupta
  2019-08-02  6:42 ` [PATCH 2/9] staging: rtl8712: _r8712_init_recv_priv(): " Nishka Dasgupta
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Nishka Dasgupta @ 2019-08-02  6:42 UTC (permalink / raw)


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

Signed-off-by: Nishka Dasgupta <nishkadg.linux at gmail.com>
---
 drivers/staging/rtl8712/recv_linux.c | 5 ++---
 drivers/staging/rtl8712/recv_osdep.h | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8712/recv_linux.c b/drivers/staging/rtl8712/recv_linux.c
index 70a4dcd4a1e5..aaa77823115a 100644
--- a/drivers/staging/rtl8712/recv_linux.c
+++ b/drivers/staging/rtl8712/recv_linux.c
@@ -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,
-				 union recv_frame *precvframe)
+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*/
diff --git a/drivers/staging/rtl8712/recv_osdep.h b/drivers/staging/rtl8712/recv_osdep.h
index dcd3b484c793..c93ba4c3eb9b 100644
--- a/drivers/staging/rtl8712/recv_osdep.h
+++ b/drivers/staging/rtl8712/recv_osdep.h
@@ -28,8 +28,8 @@ 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,
-				 union recv_frame *precvframe);
+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,
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-08-02  6:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02  6:42 [PATCH 1/9] staging: rtl8712: r8712_os_recv_resource_alloc(): Change return type Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 2/9] staging: rtl8712: _r8712_init_recv_priv(): " Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 3/9] staging: rtl8712: r8712_init_recv_priv(): " Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 4/9] staging: rtl8712: r8712_os_recvbuf_resource_alloc(): Change return values Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 5/9] staging: rtl8712: r8712_os_recvbuf_resource_free(): Change return type Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 6/9] staging: rtl8712: r8712_tkip_decrypt(): " Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 7/9] staging: rtl8712: aes_cipher(): " Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 8/9] staging: rtl8712: aes_decipher(): " Nishka Dasgupta
2019-08-02  6:42 ` [PATCH 9/9] staging: rtl8712: r8712_aes_decrypt(): " Nishka Dasgupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.