staging: r8188eu: remove RT_TRACE calls from core/rtw_io.c
authorPhillip Potter <phil@philpotter.co.uk>
Sun, 1 Aug 2021 19:04:27 +0000 (20:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 10:42:25 +0000 (12:42 +0200)
Remove RT_TRACE macro calls from core/rtw_io.c, so that ultimately the
macro definition itself can eventually be removed.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210801190437.82017-6-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_io.c

index 85d1f7deda23dfbd14edd6e0a2590786df6c413a..2a47329d90e8240709aa310d796b3c5908d27f8d 100644 (file)
@@ -182,12 +182,8 @@ void _rtw_read_mem(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
        struct  intf_hdl                *pintfhdl = &(pio_priv->intf);
 
 
-       if (adapter->bDriverStopped || adapter->bSurpriseRemoved) {
-            RT_TRACE(_module_rtl871x_io_c_, _drv_info_,
-                     ("rtw_read_mem:bDriverStopped(%d) OR bSurpriseRemoved(%d)",
-                     adapter->bDriverStopped, adapter->bSurpriseRemoved));
+       if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
             return;
-       }
        _read_mem = pintfhdl->io_ops._read_mem;
        _read_mem(pintfhdl, addr, cnt, pmem);
 
@@ -216,12 +212,8 @@ void _rtw_read_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
 
 
 
-       if (adapter->bDriverStopped || adapter->bSurpriseRemoved) {
-            RT_TRACE(_module_rtl871x_io_c_, _drv_info_,
-                     ("rtw_read_port:bDriverStopped(%d) OR bSurpriseRemoved(%d)",
-                     adapter->bDriverStopped, adapter->bSurpriseRemoved));
+       if (adapter->bDriverStopped || adapter->bSurpriseRemoved)
             return;
-       }
 
        _read_port = pintfhdl->io_ops._read_port;