drivers/staging/rtl8723bs/core/rtw_ap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
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
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
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
© 2016 - 2026 Red Hat, Inc.