mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Giuliani via B4 Relay <devnull+nicolas.giuliani.hotmail.com@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	 Nicolas Giuliani <nicolas.giuliani@hotmail.com>
Subject: [PATCH] staging: rtl8723bs: use unsigned int in rtw_get_rateset_len
Date: Thu, 03 Sep 2026 22:31:46 +0200	[thread overview]
Message-ID: <20260903-send-final-v1-1-e72dd23d65f2@hotmail.com> (raw)

From: Nicolas Giuliani <nicolas.giuliani@hotmail.com>

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
Signed-off-by: Nicolas Giuliani <nicolas.giuliani@hotmail.com>
---
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(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index 66f476a46a..8c20609fc3 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -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)
diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h
index 9f421e4875..e8f99e700c 100644
--- a/drivers/staging/rtl8723bs/include/ieee80211.h
+++ b/drivers/staging/rtl8723bs/include/ieee80211.h
@@ -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,
-- 
Nicolas Giuliani <nicolas.giuliani@hotmail.com>



             reply	other threads:[~2026-09-03 20:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 20:31 Nicolas Giuliani via B4 Relay [this message]
2026-09-04  4:23 ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260903-send-final-v1-1-e72dd23d65f2@hotmail.com \
    --to=devnull+nicolas.giuliani.hotmail.com@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=nicolas.giuliani@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®