* [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c
@ 2026-02-10 15:28 Dharanitharan R
2026-02-10 15:41 ` Greg KH
2026-02-10 15:41 ` Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: Dharanitharan R @ 2026-02-10 15:28 UTC (permalink / raw)
To: gregkh
Cc: trohan2000, bqn9090, straube.linux, hansg, abrahamadekunle50,
davidzalman.101, linux-staging, linux-kernel, Dharanitharan R
Convert the loop iterator to a block-scoped declaration
using C99-style for-loop initialization.
Signed-off-by: Dharanitharan R <dharanitharan725@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_ap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 67197c7d4a4d..919bf8db6002 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -178,7 +178,6 @@ void expire_timeout_chk(struct adapter *padapter)
struct sta_priv *pstapriv = &padapter->stapriv;
u8 chk_alive_num = 0;
char chk_alive_list[NUM_STA];
- int i;
spin_lock_bh(&pstapriv->auth_list_lock);
@@ -278,7 +277,7 @@ void expire_timeout_chk(struct adapter *padapter)
}
/* issue null data to check sta alive*/
- for (i = 0; i < chk_alive_num; i++) {
+ for (int i = 0; i < chk_alive_num; i++) {
int ret = _FAIL;
psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c
2026-02-10 15:28 [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c Dharanitharan R
@ 2026-02-10 15:41 ` Greg KH
2026-02-10 15:41 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-02-10 15:41 UTC (permalink / raw)
To: Dharanitharan R
Cc: trohan2000, bqn9090, straube.linux, hansg, abrahamadekunle50,
davidzalman.101, linux-staging, linux-kernel
On Tue, Feb 10, 2026 at 03:28:13PM +0000, Dharanitharan R wrote:
> Convert the loop iterator to a block-scoped declaration
> using C99-style for-loop initialization.
No need for this to be changed at this point in time, just do that for
new code please. What tool said that this should be changed?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c
2026-02-10 15:28 [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c Dharanitharan R
2026-02-10 15:41 ` Greg KH
@ 2026-02-10 15:41 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-02-10 15:41 UTC (permalink / raw)
To: Dharanitharan R
Cc: trohan2000, bqn9090, straube.linux, hansg, abrahamadekunle50,
davidzalman.101, linux-staging, linux-kernel
On Tue, Feb 10, 2026 at 03:28:13PM +0000, Dharanitharan R wrote:
> Convert the loop iterator to a block-scoped declaration
> using C99-style for-loop initialization.
>
> Signed-off-by: Dharanitharan R <dharanitharan725@gmail.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_ap.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
> index 67197c7d4a4d..919bf8db6002 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ap.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
> @@ -178,7 +178,6 @@ void expire_timeout_chk(struct adapter *padapter)
> struct sta_priv *pstapriv = &padapter->stapriv;
> u8 chk_alive_num = 0;
> char chk_alive_list[NUM_STA];
> - int i;
>
> spin_lock_bh(&pstapriv->auth_list_lock);
>
> @@ -278,7 +277,7 @@ void expire_timeout_chk(struct adapter *padapter)
> }
>
> /* issue null data to check sta alive*/
> - for (i = 0; i < chk_alive_num; i++) {
> + for (int i = 0; i < chk_alive_num; i++) {
> int ret = _FAIL;
>
> psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
> --
> 2.43.0
>
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-10 15:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-10 15:28 [PATCH v2] staging: rtl8723bs: use block-scoped loop variable in rtw_ap.c Dharanitharan R
2026-02-10 15:41 ` Greg KH
2026-02-10 15:41 ` Greg KH
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®