projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f632c61
)
Staging: rtl8723bs: remove useless macros
author
Marco Cesati
<marcocesati@gmail.com>
Fri, 26 Mar 2021 17:41:45 +0000
(18:41 +0100)
committer
Greg 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
patch
|
blob
|
blame
|
history
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
patch
|
blob
|
blame
|
history
drivers/staging/rtl8723bs/os_dep/sdio_intf.c
patch
|
blob
|
blame
|
history
drivers/staging/rtl8723bs/os_dep/xmit_linux.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/rtl8723bs/include/osdep_service.h
b/drivers/staging/rtl8723bs/include/osdep_service.h
index fd8830a517074745f825e8ac191159f26c644301..b49838c7e457d4b49c57a0cf158228c2b14970e0 100644
(file)
--- a/
drivers/staging/rtl8723bs/include/osdep_service.h
+++ b/
drivers/staging/rtl8723bs/include/osdep_service.h
@@
-58,11
+58,6
@@
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);
diff --git
a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index 8deaf98a83dd89ee47b3f4ed8af0523c0026ec7d..4f6398f86b753c33bac9f0e5efba4e86c8f2be70 100644
(file)
--- a/
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@
-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;
diff --git
a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index 156ad91d33eed02872b7d61a5689829e710aa55e..b6be1423ef75095d6c0a6e569e52cf8a791938aa 100644
(file)
--- a/
drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/
drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@
-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);
}
diff --git
a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
index a3b6584ca0d0294a56411f915b2f4747b0a4e878..216b2f62eefd3454fea2e1116a1464a5f427c744 100644
(file)
--- a/
drivers/staging/rtl8723bs/os_dep/xmit_linux.c
+++ b/
drivers/staging/rtl8723bs/os_dep/xmit_linux.c
@@
-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;
}