All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: rtl8723bs: remove useless macro and obsolete comment
@ 2021-03-24 19:39 Marco Cesati
  2021-03-26 14:04 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Cesati @ 2021-03-24 19:39 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Hans de Goede, Larry Finger, Dan Carpenter, linux-staging

Remove two no-op macros, two related helper macrors, and one related
comment in the staging/rtl8723bs driver.

Signed-off-by: Marco Cesati <marcocesati@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service.h | 7 -------
 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 --
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c      | 2 --
 drivers/staging/rtl8723bs/os_dep/xmit_linux.c     | 4 +---
 4 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service.h b/drivers/staging/rtl8723bs/include/osdep_service.h
index 9405bdb2abf0..b49838c7e457 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service.h
@@ -58,13 +58,6 @@
 
 extern int RTW_STATUS_CODE(int error_code);
 
-/* flags used for rtw_mstat_update() */
-
-#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 a577ddcce8cd..2c12feff0978 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@ -2386,8 +2386,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 8f8549eee23e..79f51fd5648e 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -580,8 +580,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 a3b6584ca0d0..216b2f62eefd 100644
--- 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;
 }
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: rtl8723bs: remove useless macro and obsolete comment
  2021-03-24 19:39 [PATCH] Staging: rtl8723bs: remove useless macro and obsolete comment Marco Cesati
@ 2021-03-26 14:04 ` Greg Kroah-Hartman
  2021-03-26 15:41   ` Marco Cesati
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2021-03-26 14:04 UTC (permalink / raw)
  To: Marco Cesati; +Cc: Hans de Goede, Larry Finger, Dan Carpenter, linux-staging

On Wed, Mar 24, 2021 at 08:39:24PM +0100, Marco Cesati wrote:
> Remove two no-op macros, two related helper macrors, and one related
> comment in the staging/rtl8723bs driver.
> 
> Signed-off-by: Marco Cesati <marcocesati@gmail.com>

Does not apply to my tree :(

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: rtl8723bs: remove useless macro and obsolete comment
  2021-03-26 14:04 ` Greg Kroah-Hartman
@ 2021-03-26 15:41   ` Marco Cesati
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Cesati @ 2021-03-26 15:41 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Hans de Goede, Larry Finger, Dan Carpenter, linux-staging

On Fri, Mar 26, 2021 at 03:04:49PM +0100, Greg Kroah-Hartman wrote:
> On Wed, Mar 24, 2021 at 08:39:24PM +0100, Marco Cesati wrote:
> > Remove two no-op macros, two related helper macrors, and one related
> > comment in the staging/rtl8723bs driver.
> > 
> > Signed-off-by: Marco Cesati <marcocesati@gmail.com>
> 
> Does not apply to my tree :(

Yeah, it was supposed to be applied on top of the patch set "remove
unreferenced enums" (alternative to the patch set "remove named
enums", which you applied)

Sorry again,

Marco


---- 
Marco Cesati, PhD
Dept. of Civil Engineering and Computer Science Engineering
Univ. of Rome Tor Vergata
via del Politecnico 1, I-00133 Rome, Italy
Tel. +39 06 7259 7389

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-26 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 19:39 [PATCH] Staging: rtl8723bs: remove useless macro and obsolete comment Marco Cesati
2021-03-26 14:04 ` Greg Kroah-Hartman
2021-03-26 15:41   ` Marco Cesati

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.