Skip to contentSkip to conversation

staging: rtl8723bs: remove unused rtw_sprintf macro

PATCH In review rafiqul713 2 participants 2 messages Nov 1, 2025 Staging

lore
Share & tools
lore

rafiqul713

author
#0 lore raw

PATCH 1/1 staging: rtl8723bs: remove unused rtw_sprintf macro

From: Rafiqul Islam <[email protected]>

The rtw_sprintf macro is defined in osdep_service.h but has no callers in the driver. Remove the dead code.

---
 drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/rtl8723bs/include/osdep_service.h +0 -6
index 8b1634f4091e..12369ee2ce1d 100644
@@ -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
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 29 lines · On Sat, Nov 01, 2025 at 07:41:49PM +0100, rafiqul713 wrote:

From: Rafiqul Islam <[email protected]>

The rtw_sprintf macro is defined in osdep_service.h but has no callers in the driver. Remove the dead code.

---
 drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/rtl8723bs/include/osdep_service.h +0 -6
index 8b1634f4091e..12369ee2ce1d 100644
@@ -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
Signature · 1 line
2.34.1

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.

You are receiving this message because of the following common error(s) as indicated below:

- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.

thanks,

greg k-h's patch email bot