Staging: rtl8723bs: remove useless macros
authorMarco Cesati <marcocesati@gmail.com>
Fri, 26 Mar 2021 17:41:45 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:34:47 +0000 (14:34 +0200)
Remove two 'no-op' macros, as well as two related unreferenced macros,
in the staging/rtl8723bs driver.

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
Link: https://lore.kernel.org/r/20210326174145.19427-2-marcocesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/osdep_service.h
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/sdio_intf.c
drivers/staging/rtl8723bs/os_dep/xmit_linux.c

index fd8830a517074745f825e8ac191159f26c644301..b49838c7e457d4b49c57a0cf158228c2b14970e0 100644 (file)
 
 extern int RTW_STATUS_CODE(int error_code);
 
-#define mstat_tf_idx(flags) ((flags)&0xff)
-#define mstat_ff_idx(flags) (((flags)&0xff00) >> 8)
-
-#define rtw_mstat_update(flag, status, sz) do {} while (0)
-#define rtw_mstat_dump(sel) do {} while (0)
 void *_rtw_zmalloc(u32 sz);
 void *_rtw_malloc(u32 sz);
 void _kfree(u8 *pbuf, u32 sz);
index 8deaf98a83dd89ee47b3f4ed8af0523c0026ec7d..4f6398f86b753c33bac9f0e5efba4e86c8f2be70 100644 (file)
@@ -2385,8 +2385,6 @@ static netdev_tx_t rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struc
        if (!skb)
                goto fail;
 
-       rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, skb->truesize);
-
        if (unlikely(skb->len < sizeof(struct ieee80211_radiotap_header)))
                goto fail;
 
index 156ad91d33eed02872b7d61a5689829e710aa55e..b6be1423ef75095d6c0a6e569e52cf8a791938aa 100644 (file)
@@ -577,8 +577,6 @@ static void __exit rtw_drv_halt(void)
        rtw_ndev_notifier_unregister();
 
        DBG_871X_LEVEL(_drv_always_, "module exit success\n");
-
-       rtw_mstat_dump(RTW_DBGDUMP);
 }
 
 
index a3b6584ca0d0294a56411f915b2f4747b0a4e878..216b2f62eefd3454fea2e1116a1464a5f427c744 100644 (file)
@@ -248,10 +248,8 @@ int rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)
 {
        int ret = 0;
 
-       if (pkt) {
-               rtw_mstat_update(MSTAT_TYPE_SKB, MSTAT_ALLOC_SUCCESS, pkt->truesize);
+       if (pkt)
                ret = _rtw_xmit_entry(pkt, pnetdev);
-       }
 
        return ret;
 }