* [PATCH] [PATCH v3] staging: rtl8723bs: remove unused rtw_sprintf macro
@ 2025-10-28 8:58 rafiqul713
2025-10-28 9:06 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: rafiqul713 @ 2025-10-28 8:58 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, Rafiqul Islam
From: Rafiqul Islam <rafiqul713@gmail.com>
The rtw_sprintf macro is defined in osdep_service.h but has no callers in
the driver. Remove the dead code.
Changes since v2:
- Addressed review feedback to delete the macro instead of replacing it
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] 2+ messages in thread
* Re: [PATCH] [PATCH v3] staging: rtl8723bs: remove unused rtw_sprintf macro
2025-10-28 8:58 [PATCH] [PATCH v3] staging: rtl8723bs: remove unused rtw_sprintf macro rafiqul713
@ 2025-10-28 9:06 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2025-10-28 9:06 UTC (permalink / raw)
To: rafiqul713; +Cc: linux-staging
On Tue, Oct 28, 2025 at 09:58:11AM +0100, rafiqul713 wrote:
> From: Rafiqul Islam <rafiqul713@gmail.com>
>
> The rtw_sprintf macro is defined in osdep_service.h but has no callers in
> the driver. Remove the dead code.
>
> Changes since v2:
> - Addressed review feedback to delete the macro instead of replacing it
As per the docs, this needs to go below the --- line.
Also, you have PATCH twice in the subject line :(
v4 perhaps?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-28 9:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-28 8:58 [PATCH] [PATCH v3] staging: rtl8723bs: remove unused rtw_sprintf macro rafiqul713
2025-10-28 9:06 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox