Skip to contentSkip to conversation

staging: rtl8723bs: use unsigned int in rtw_get_rateset_len

PATCH In review Nicolas Giuliani 2 participants 2 messages Sep 3 – Sep 4 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: use unsigned int in rtw_get_rateset_len

Replace the uint typedef with unsigned int in rtw_get_rateset_len() and its declaration.

This addresses the rtl8723bs TODO item to convert remaining unusual variable types. No functional change intended.

Assisted-by LLM

---
staging: rtl8723bs: use unsigned int in rtw_get_rateset_len

---
 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++--
 drivers/staging/rtl8723bs/include/ieee80211.h  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +2 -2
index 66f476a46a..8c20609fc3 100644
@@ -278,9 +278,9 @@ void rtw_set_supported_rate(u8 *supported_rates, uint mode)
 	}
 }
 
-uint rtw_get_rateset_len(u8 *rateset)
+unsigned int rtw_get_rateset_len(u8 *rateset)
 {
-	uint i;
+	unsigned int i;
 
 	for (i = 0; i < 13; i++)
 		if (rateset[i] == 0)
drivers/staging/rtl8723bs/include/ieee80211.h +1 -1
index 9f421e4875..e8f99e700c 100644
@@ -722,7 +722,7 @@ u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8
 	for (ie = (void *)buf; (((u8 *)ie) - ((u8 *)buf) + 1) < buf_len; \
 		ie = (void *)(((u8 *)ie) + *(((u8 *)ie) + 1) + 2))
 
-uint	rtw_get_rateset_len(u8 *rateset);
+unsigned int	rtw_get_rateset_len(u8 *rateset);
 
 struct registry_priv;
 int rtw_generate_ie(struct registry_priv *pregistrypriv);

---
base-commit: 758be99c46265b74476d5e1173d781abe325533e
change-id: 20260903-send-final-12f53f98a67d

Best regards,

Signature · 1 line
Nicolas Giuliani <[email protected]>
#1 lore raw
Quoted 9 lines · On Thu, Sep 03, 2026 at 10:31:46PM +0200, Nicolas Giuliani via B4 Relay wrote:

From: Nicolas Giuliani <[email protected]>

Replace the uint typedef with unsigned int in rtw_get_rateset_len() and its declaration.

This addresses the rtl8723bs TODO item to convert remaining unusual variable types. No functional change intended.

Assisted-by LLM

Please read:

	https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh

why this is not a good idea for you to do be doing at all.

thanks,

greg k-h