staging: rtl8188eu: remove all RT_TRACE calls from os_dep/xmit_linux.c
authorPhillip Potter <phil@philpotter.co.uk>
Fri, 25 Jun 2021 00:07:35 +0000 (01:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Jun 2021 07:03:50 +0000 (09:03 +0200)
Remove all RT_TRACE calls from os_dep/xmit_linux.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210625000756.6313-3-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/xmit_linux.c

index c73f946..1b5776a 100644 (file)
@@ -159,13 +159,8 @@ int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
        s32 res = 0;
 
-       RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("+xmit_enry\n"));
-
-       if (!rtw_if_up(padapter)) {
-               RT_TRACE(_module_xmit_osdep_c_, _drv_err_,
-                        ("%s: rtw_if_up fail\n", __func__));
+       if (!rtw_if_up(padapter))
                goto drop_packet;
-       }
 
        rtw_check_xmit_resource(padapter, pkt);
 
@@ -184,16 +179,11 @@ int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)
                goto drop_packet;
 
        pxmitpriv->tx_pkts++;
-       RT_TRACE(_module_xmit_osdep_c_, _drv_info_,
-                ("%s: tx_pkts=%d\n", __func__, (u32)pxmitpriv->tx_pkts));
        goto exit;
 
 drop_packet:
        pxmitpriv->tx_drop++;
        dev_kfree_skb_any(pkt);
-       RT_TRACE(_module_xmit_osdep_c_, _drv_notice_,
-                ("%s: drop, tx_drop=%d\n", __func__, (u32)pxmitpriv->tx_drop));
-
 exit:
        return NETDEV_TX_OK;
 }