]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8712: r8712_free_recvframe(): Change return type
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 22 Jul 2019 09:23:41 +0000 (14:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:52:01 +0000 (09:52 +0200)
Change return type of r8712_free_recvframe from int to void as it always
returns _SUCCESS and its return value is never used.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190722092341.21030-8-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c
drivers/staging/rtl8712/rtl871x_recv.h

index 892ea71c37185abd39e3cb2c3d4a5b95ed09c30f..d9574ea3ffb2b9ee4bc64b72eb465d1e73e65ae6 100644 (file)
@@ -120,7 +120,7 @@ void r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf)
        }
 }
 
-int r8712_free_recvframe(union recv_frame *precvframe,
+void r8712_free_recvframe(union recv_frame *precvframe,
                   struct  __queue *pfree_recv_queue)
 {
        unsigned long irqL;
@@ -139,7 +139,6 @@ int r8712_free_recvframe(union recv_frame *precvframe,
                        precvpriv->free_recvframe_cnt++;
        }
        spin_unlock_irqrestore(&pfree_recv_queue->lock, irqL);
-       return _SUCCESS;
 }
 
 static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib,
index f87b2ff5de1cd3433ebfe63ec864a2d621cca6d7..0146a774e19d31aa4d884d0bcfe838cc42623175 100644 (file)
@@ -128,7 +128,7 @@ struct sta_recv_priv {
 
 /* get a free recv_frame from pfree_recv_queue */
 union recv_frame *r8712_alloc_recvframe(struct  __queue *pfree_recv_queue);
-int r8712_free_recvframe(union recv_frame *precvframe,
+void r8712_free_recvframe(union recv_frame *precvframe,
                          struct  __queue *pfree_recv_queue);
 void r8712_free_recvframe_queue(struct  __queue *pframequeue,
                                 struct  __queue *pfree_recv_queue);