public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c
@ 2026-04-20 14:16 Demir Özdemir
  2026-04-20 22:47 ` Ethan Tidmore
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Demir Özdemir @ 2026-04-20 14:16 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel

Remove redundant else block after a return statement within if block in
rtl8723bs_hal_init(). Identified through checkpatch as a warning.

Signed-off-by: Demir Özdemir <demirozdemir@disroot.org>
---
 drivers/staging/rtl8723bs/hal/sdio_halinit.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
index f2f73c65a636..809f07855bb8 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
@@ -654,11 +654,11 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
 		padapter->bFWReady = false;
 		pHalData->fw_ractrl = false;
 		return ret;
-	} else {
-		padapter->bFWReady = true;
-		pHalData->fw_ractrl = true;
 	}
 
+	padapter->bFWReady = true;
+	pHalData->fw_ractrl = true;
+
 	rtl8723b_InitializeFirmwareVars(padapter);
 
 /* 	SIC_Init(padapter); */
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c
  2026-04-20 14:16 [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c Demir Özdemir
@ 2026-04-20 22:47 ` Ethan Tidmore
  2026-04-21 14:34 ` Luka Gejak
  2026-04-26 20:10 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Ethan Tidmore @ 2026-04-20 22:47 UTC (permalink / raw)
  To: Demir Özdemir, gregkh; +Cc: linux-staging, linux-kernel

On Mon Apr 20, 2026 at 9:16 AM CDT, Demir Özdemir wrote:
> Remove redundant else block after a return statement within if block in
> rtl8723bs_hal_init(). Identified through checkpatch as a warning.
>
> Signed-off-by: Demir Özdemir <demirozdemir@disroot.org>
> ---

LGTM.

Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>

Thanks,

ET

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c
  2026-04-20 14:16 [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c Demir Özdemir
  2026-04-20 22:47 ` Ethan Tidmore
@ 2026-04-21 14:34 ` Luka Gejak
  2026-04-26 20:10 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Luka Gejak @ 2026-04-21 14:34 UTC (permalink / raw)
  To: Demir Özdemir, gregkh; +Cc: linux-staging, linux-kernel

On Mon Apr 20, 2026 at 4:16 PM CEST, Demir Özdemir wrote:
> Remove redundant else block after a return statement within if block in
> rtl8723bs_hal_init(). Identified through checkpatch as a warning.
>
> Signed-off-by: Demir Özdemir <demirozdemir@disroot.org>
> ---
>  drivers/staging/rtl8723bs/hal/sdio_halinit.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> index f2f73c65a636..809f07855bb8 100644
> --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> @@ -654,11 +654,11 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  		padapter->bFWReady = false;
>  		pHalData->fw_ractrl = false;
>  		return ret;
> -	} else {
> -		padapter->bFWReady = true;
> -		pHalData->fw_ractrl = true;
>  	}
>  
> +	padapter->bFWReady = true;
> +	pHalData->fw_ractrl = true;
> +
>  	rtl8723b_InitializeFirmwareVars(padapter);
>  
>  /* 	SIC_Init(padapter); */

LGTM.

Reviewed-by: Luka Gejak <luka.gejak@linux.dev>

Best regards,
Luka Gejak

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c
  2026-04-20 14:16 [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c Demir Özdemir
  2026-04-20 22:47 ` Ethan Tidmore
  2026-04-21 14:34 ` Luka Gejak
@ 2026-04-26 20:10 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2026-04-26 20:10 UTC (permalink / raw)
  To: Demir Özdemir; +Cc: linux-staging, linux-kernel

On Mon, Apr 20, 2026 at 04:16:17PM +0200, Demir Özdemir wrote:
> Remove redundant else block after a return statement within if block in
> rtl8723bs_hal_init(). Identified through checkpatch as a warning.
> 
> Signed-off-by: Demir Özdemir <demirozdemir@disroot.org>
> Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
> Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
> ---
>  drivers/staging/rtl8723bs/hal/sdio_halinit.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> index f2f73c65a636..809f07855bb8 100644
> --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
> @@ -654,11 +654,11 @@ u32 rtl8723bs_hal_init(struct adapter *padapter)
>  		padapter->bFWReady = false;
>  		pHalData->fw_ractrl = false;
>  		return ret;
> -	} else {
> -		padapter->bFWReady = true;
> -		pHalData->fw_ractrl = true;
>  	}
>  
> +	padapter->bFWReady = true;
> +	pHalData->fw_ractrl = true;
> +
>  	rtl8723b_InitializeFirmwareVars(padapter);
>  
>  /* 	SIC_Init(padapter); */
> -- 
> 2.53.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:

- Your patch did not apply to any known trees that Greg is in control
  of.  Possibly this is because you made it against Linus's tree, not
  the linux-next tree, which is where all of the development for the
  next version of the kernel is at.  Please refresh your patch against
  the linux-next tree, or even better yet, the development tree
  specified in the MAINTAINERS file for the subsystem you are submitting
  a patch for, and resend it.

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] 4+ messages in thread

end of thread, other threads:[~2026-04-27  3:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20 14:16 [PATCH] staging: rtl8723bs: remove redundant else block in sdio_halinit.c Demir Özdemir
2026-04-20 22:47 ` Ethan Tidmore
2026-04-21 14:34 ` Luka Gejak
2026-04-26 20:10 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox