staging: rtl8712: r8712_xmitframe_aggr_1st(): Change return type to void
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 04:46:37 +0000 (10:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 11:20:12 +0000 (13:20 +0200)
Change return type of r8712_xmitframe_aggr_1st from u8 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/20190813044638.16348-3-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_xmit.c
drivers/staging/rtl8712/rtl8712_xmit.h

index 6f1dbcf25859106942d8db4b63ace4f5d1c5be43..9152c25c11f860d32fbc216290272f4907679d80 100644 (file)
@@ -318,8 +318,8 @@ void r8712_append_mpdu_unit(struct xmit_buf *pxmitbuf,
 }
 
 
-u8 r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf,
-                       struct xmit_frame *pxmitframe)
+void r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf,
+                             struct xmit_frame *pxmitframe)
 {
        /* linux complete context doesn't need to protect */
        pxmitframe->pxmitbuf = pxmitbuf;
@@ -332,8 +332,6 @@ u8 r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf,
        r8712_construct_txaggr_cmd_hdr(pxmitbuf);
        r8712_append_mpdu_unit(pxmitbuf, pxmitframe);
        pxmitbuf->aggr_nr = 1;
-
-       return _SUCCESS;
 }
 
 u16 r8712_xmitframe_aggr_next(struct xmit_buf *pxmitbuf,
index 9be8fb70c92e2417de396474e45fe42b7384cd2a..faf2128285b67852a729dd0dabbc9950168bfafe 100644 (file)
@@ -102,8 +102,8 @@ void r8712_do_queue_select(struct _adapter *padapter,
                           struct pkt_attrib *pattrib);
 
 #ifdef CONFIG_R8712_TX_AGGR
-u8 r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf,
-                       struct xmit_frame *pxmitframe);
+void r8712_xmitframe_aggr_1st(struct xmit_buf *pxmitbuf,
+                             struct xmit_frame *pxmitframe);
 u8 r8712_dump_aggr_xframe(struct xmit_buf *pxmitbuf,
                        struct xmit_frame *pxmitframe);
 #endif