staging: rtl8723bs: remove unused rtw_sprintf macro
PATCH v2 1/1 staging: rtl8723bs: remove unused rtw_sprintf macro
From: Rafiqul Islam <[email protected]>
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.
--- drivers/staging/rtl8723bs/include/osdep_service.h | 6 ------ 1 file changed, 6 deletions(-)
drivers/staging/rtl8723bs/include/osdep_service.h +0 -6
@@ -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
Greg KH
maintainerQuoted 8 lines · On Sun, Oct 26, 2025 at 10:49:25AM +0100, rafiqul713 wrote:
From: Rafiqul Islam <[email protected]>
This patch removes the
rtw_sprintfmacro fromdrivers/staging/rtl8723bs/include/osdep_service.h. It was defined but never used anywhere in the driver.Changes since v1:
- Instead of replacingrtw_sprintfwith scnprintf, we realized the macro is unused.
- Removed it entirely to clean up the code.
Please slow down, take a day or two, and go read all of the links that were provided for you on how to do this properly, and THEN submit a new version. There is no rush here.
Quoted 3 lines
No functional changes are expected.
Tested: module build works without issues.
This type of testing is always expected, no need to say so.
thanks,
greg k-h