linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] [PATCH v2] staging: rtl8723bs: remove unused rtw_sprintf macro
@ 2025-10-26  9:32 rafiqul713
  2025-10-26  9:44 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: rafiqul713 @ 2025-10-26  9:32 UTC (permalink / raw)
  To: linux-staging; +Cc: rafiqul713

From: Rafiqul Islam <rafiqul713@gmail.com>

The rtw_sprintf macro is defined but never used anywhere in
drivers/staging/rtl8723bs. Remove it to clean up the code.

Signed-off-by: Rafiqul Islam <rafiqul713@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service.h b/drivers/staging/rtl8723bs/include/osdep_service.h
index 8b1634f4091e..12369ee2ce1d 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service.h
@@ -115,10 +115,4 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf);
 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
 struct rtw_cbuf *rtw_cbuf_alloc(u32 size);
 
-/*  String handler */
-/*
- * Write formatted output to sized buffer
- */
-#define rtw_sprintf(buf, size, format, arg...)	snprintf(buf, size, format, ##arg)
-
 #endif
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] [PATCH v2] staging: rtl8723bs: remove unused rtw_sprintf macro
@ 2025-10-26  9:49 rafiqul713
  2025-10-26  9:54 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: rafiqul713 @ 2025-10-26  9:49 UTC (permalink / raw)
  To: linux-staging; +Cc: rafiqul713

From: Rafiqul Islam <rafiqul713@gmail.com>

This patch removes the rtw_sprintf macro from drivers/staging/rtl8723bs/include/osdep_service.h.
It was defined but never used anywhere in the driver.

Changes since v1:
- Instead of replacing rtw_sprintf with scnprintf, we realized the macro is unused.
- Removed it entirely to clean up the code.

No functional changes are expected.

Tested: module build works without issues.

Signed-off-by: Rafiqul Islam <rafiqul713@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service.h b/drivers/staging/rtl8723bs/include/osdep_service.h
index 8b1634f4091e..12369ee2ce1d 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service.h
@@ -115,10 +115,4 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf);
 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
 struct rtw_cbuf *rtw_cbuf_alloc(u32 size);
 
-/*  String handler */
-/*
- * Write formatted output to sized buffer
- */
-#define rtw_sprintf(buf, size, format, arg...)	snprintf(buf, size, format, ##arg)
-
 #endif
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [PATCH] [PATCH v2] staging: rtl8723bs: remove unused rtw_sprintf macro
@ 2025-10-26 10:02 rafiqul713
  0 siblings, 0 replies; 5+ messages in thread
From: rafiqul713 @ 2025-10-26 10:02 UTC (permalink / raw)
  To: linux-staging; +Cc: rafiqul713

From: Rafiqul Islam <rafiqul713@gmail.com>

This patch removes the rtw_sprintf macro from drivers/staging/rtl8723bs/include/osdep_service.h.
It was defined but never used anywhere in the driver.

Changes since v1:
- Instead of replacing rtw_sprintf with scnprintf, we realized the macro is unused.
- Removed it entirely to clean up the code.

Signed-off-by: Rafiqul Islam <rafiqul713@gmail.com>
---
 drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/osdep_service.h b/drivers/staging/rtl8723bs/include/osdep_service.h
index 8b1634f4091e..12369ee2ce1d 100644
--- a/drivers/staging/rtl8723bs/include/osdep_service.h
+++ b/drivers/staging/rtl8723bs/include/osdep_service.h
@@ -115,10 +115,4 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf);
 void *rtw_cbuf_pop(struct rtw_cbuf *cbuf);
 struct rtw_cbuf *rtw_cbuf_alloc(u32 size);
 
-/*  String handler */
-/*
- * Write formatted output to sized buffer
- */
-#define rtw_sprintf(buf, size, format, arg...)	snprintf(buf, size, format, ##arg)
-
 #endif
-- 
2.34.1


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

end of thread, other threads:[~2025-10-26 10:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-26  9:32 [PATCH] [PATCH v2] staging: rtl8723bs: remove unused rtw_sprintf macro rafiqul713
2025-10-26  9:44 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2025-10-26  9:49 rafiqul713
2025-10-26  9:54 ` Greg KH
2025-10-26 10:02 rafiqul713

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).