Skip to contentSkip to conversation

staging: rtl8723bs: remove unused rtw_sprintf macro

PATCH New rafiqul713 1 participant 1 message Oct 28, 2025 Staging

lore
Share & tools
lore

rafiqul713

author
#0 lore raw

PATCH v4 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.

Changes since v3:
- Addressed review feedback to delete the macro instead of replacing it

---
 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