staging: rtl8188eu: remove _dbg_dump_tx_info function
authorPhillip Potter <phil@philpotter.co.uk>
Tue, 15 Jun 2021 22:36:07 +0000 (23:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 07:25:29 +0000 (09:25 +0200)
Remove the _dbg_dump_tx_info function from hal/rtl8188e_xmit.c, as
it doesn't actually do anything and is only called from one place.
It used to have some redundant debugging statements in it, but these
have now been removed anyway, so all it does is read information from
the adapter to set a variable 'dump_txdesc' which is then never used.
This fixes a kernel test robot warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210615223607.13863-8-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_xmit.c
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
drivers/staging/rtl8188eu/include/rtl8188e_xmit.h

index 0d56087..efa8960 100644 (file)
@@ -23,20 +23,3 @@ void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf)
                                        RTW_SCTX_DONE_CCX_PKT_FAIL);
        }
 }
-
-void _dbg_dump_tx_info(struct adapter *padapter, int frame_tag,
-                      struct tx_desc *ptxdesc)
-{
-       u8 dmp_txpkt;
-       bool dump_txdesc = false;
-
-       rtw_hal_get_def_var(padapter, HAL_DEF_DBG_DUMP_TXPKT, &(dmp_txpkt));
-
-       if (dmp_txpkt == 1) {/* dump txdesc for data frame */
-               if ((frame_tag & 0x0f) == DATA_FRAMETAG)
-                       dump_txdesc = true;
-       } else if (dmp_txpkt == 2) {/* dump txdesc for mgnt frame */
-               if ((frame_tag & 0x0f) == MGNT_FRAMETAG)
-                       dump_txdesc = true;
-       }
-}
index 7ca0a45..729d3bb 100644 (file)
@@ -318,7 +318,6 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag
        rtl88eu_dm_set_tx_ant_by_tx_info(odmpriv, pmem, pattrib->mac_id);
 
        rtl8188eu_cal_txdesc_chksum(ptxdesc);
-       _dbg_dump_tx_info(adapt, pxmitframe->frame_tag, ptxdesc);
        return pull;
 }
 
index 617c227..72a2bb8 100644 (file)
@@ -154,7 +154,4 @@ bool rtl8188eu_xmitframe_complete(struct adapter *padapter,
 
 void handle_txrpt_ccx_88e(struct adapter *adapter, u8 *buf);
 
-void _dbg_dump_tx_info(struct adapter *padapter, int frame_tag,
-                      struct tx_desc *ptxdesc);
-
 #endif /* __RTL8188E_XMIT_H__ */