staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.c
authorPhillip Potter <phil@philpotter.co.uk>
Wed, 23 Jun 2021 23:48:57 +0000 (00:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jun 2021 12:43:06 +0000 (14:43 +0200)
Remove all DBG_88E_LEVEL calls from core/rtw_pwrctrl.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/20210623234902.7411-5-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_pwrctrl.c

index f6fe43e..95e2eea 100644 (file)
@@ -112,12 +112,8 @@ void ips_enter(struct adapter *padapter)
                return;
 
        if (pxmit_priv->free_xmitbuf_cnt != NR_XMITBUFF ||
-           pxmit_priv->free_xmit_extbuf_cnt != NR_XMIT_EXTBUFF) {
-               DBG_88E_LEVEL(_drv_info_, "There are some pkts to transmit\n");
-               DBG_88E_LEVEL(_drv_info_, "free_xmitbuf_cnt: %d, free_xmit_extbuf_cnt: %d\n",
-                             pxmit_priv->free_xmitbuf_cnt, pxmit_priv->free_xmit_extbuf_cnt);
+           pxmit_priv->free_xmit_extbuf_cnt != NR_XMIT_EXTBUFF)
                return;
-       }
 
        mutex_lock(&pwrpriv->mutex_lock);
 
@@ -129,7 +125,6 @@ void ips_enter(struct adapter *padapter)
        pwrpriv->ips_enter_cnts++;
        if (rf_off == pwrpriv->change_rfpwrstate) {
                pwrpriv->bpower_saving = true;
-               DBG_88E_LEVEL(_drv_info_, "nolinked power save enter\n");
 
                if (pwrpriv->ips_mode == IPS_LEVEL_2)
                        pwrpriv->bkeepfwalive = true;
@@ -161,8 +156,6 @@ int ips_leave(struct adapter *padapter)
                if (result == _SUCCESS)
                        pwrpriv->rf_pwrstate = rf_on;
 
-               DBG_88E_LEVEL(_drv_info_, "nolinked power save leave\n");
-
                if ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || (psecuritypriv->dot11PrivacyAlgrthm == _WEP104_)) {
                        set_channel_bwmode(padapter, padapter->mlmeextpriv.cur_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
                        for (keyid = 0; keyid < 4; keyid++) {