staging: rtl8723bs: removed unused if blocks
authorIsmayil Mirzali <ismayilmirzeli@gmail.com>
Wed, 22 Dec 2021 18:51:15 +0000 (20:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Dec 2021 16:08:07 +0000 (17:08 +0100)
Deleted the commented if blocks that weren't being used as suggested by
the maintainers.

Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
Link: https://lore.kernel.org/r/b4652b7490f3574445d567ef662270605533bfa4.1640197297.git.ismayilmirzeli@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c

index 7fe3df8..b5d5e92 100644 (file)
@@ -31,9 +31,6 @@ static u8 rtw_sdio_wait_enough_TxOQT_space(struct adapter *padapter, u8 agg_num)
 
        pHalData->SdioTxOQTFreeSpace -= agg_num;
 
-       /* if (n > 1) */
-       /*      ++priv->pshare->nr_out_of_txoqt_space; */
-
        return true;
 }
 
@@ -310,8 +307,6 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
                                        txlen = txdesc_size + pxmitframe->attrib.last_txcmdsz;
                                        pxmitframe->pg_num = (txlen + 127) / 128;
                                        pxmitbuf->pg_num += (txlen + 127) / 128;
-                                   /* if (k != 1) */
-                                       /*      ((struct xmit_frame*)pxmitbuf->priv_data)->pg_num += pxmitframe->pg_num; */
                                        pxmitbuf->ptail += _RND(txlen, 8); /*  round to 8 bytes alignment */
                                        pxmitbuf->len = _RND(pxmitbuf->len, 8) + txlen;
                                }