staging: r8188eu: remove unused function dump_txrpt_ccx_88e
authorPhillip Potter <phil@philpotter.co.uk>
Wed, 18 Aug 2021 23:42:49 +0000 (00:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Aug 2021 05:42:07 +0000 (07:42 +0200)
Remove unused function dump_txrpt_ccx_88e from hal/rtl8188e_xmit.c and
remove its declaration in include/rtl8188e_xmit.h, as this function is
not called from anywhere, and is thus dead code.

Acked-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210818234253.208271-3-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188e_xmit.c
drivers/staging/r8188eu/include/rtl8188e_xmit.h

index d2b55d581f95914fa592f68c5f57c25462a789d5..46b871f3f631b85eb007483bd6d1dc7d52cefa84 100644 (file)
@@ -7,28 +7,6 @@
 #include "../include/drv_types.h"
 #include "../include/rtl8188e_hal.h"
 
-void dump_txrpt_ccx_88e(void *buf)
-{
-       struct txrpt_ccx_88e *txrpt_ccx = (struct txrpt_ccx_88e *)buf;
-
-       DBG_88E("%s:\n"
-               "tag1:%u, pkt_num:%u, txdma_underflow:%u, int_bt:%u, int_tri:%u, int_ccx:%u\n"
-               "mac_id:%u, pkt_ok:%u, bmc:%u\n"
-               "retry_cnt:%u, lifetime_over:%u, retry_over:%u\n"
-               "ccx_qtime:%u\n"
-               "final_data_rate:0x%02x\n"
-               "qsel:%u, sw:0x%03x\n",
-               __func__, txrpt_ccx->tag1, txrpt_ccx->pkt_num,
-               txrpt_ccx->txdma_underflow, txrpt_ccx->int_bt,
-               txrpt_ccx->int_tri, txrpt_ccx->int_ccx,
-               txrpt_ccx->mac_id, txrpt_ccx->pkt_ok, txrpt_ccx->bmc,
-               txrpt_ccx->retry_cnt, txrpt_ccx->lifetime_over,
-               txrpt_ccx->retry_over, txrpt_ccx_qtime_88e(txrpt_ccx),
-               txrpt_ccx->final_data_rate, txrpt_ccx->qsel,
-               txrpt_ccx_sw_88e(txrpt_ccx)
-       );
-}
-
 void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf)
 {
        struct txrpt_ccx_88e *txrpt_ccx = (struct txrpt_ccx_88e *)buf;
index d2099da1a41a4a733a75c491085343e1cc9d3a91..20b55e3850baa4e23265a6de315fec06b73231d1 100644 (file)
@@ -150,7 +150,6 @@ s32 rtl8188eu_xmitframe_complete(struct adapter *padapter,
                                 struct xmit_priv *pxmitpriv,
                                 struct xmit_buf *pxmitbuf);
 
-void dump_txrpt_ccx_88e(void *buf);
 void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf);
 
 #endif /* __RTL8188E_XMIT_H__ */