public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: collapse duplicate goto exit conditions
@ 2026-03-17 13:55 Marco Antonio Solis Segura
  2026-03-18 15:54 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Antonio Solis Segura @ 2026-03-17 13:55 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Marco Antonio Solis Segura

Combine _FAIL and RTW_RX_HANDLED cases into a single conditional,
removing redundant branches and simplifying control flow.
No functional changes intended.

Signed-off-by: Marco Antonio Solis Segura <mshdevv@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_recv.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
index 337671b1211f..20f5f8760ba0 100644
--- a/drivers/staging/rtl8723bs/core/rtw_recv.c
+++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
@@ -1339,12 +1339,8 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f
 
 	}
 
-	if (ret == _FAIL) {
+	if (ret == _FAIL || ret == RTW_RX_HANDLED)
 		goto exit;
-	} else if (ret == RTW_RX_HANDLED) {
-		goto exit;
-	}
-
 
 	if (!psta) {
 		ret = _FAIL;
-- 
2.53.0


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

* Re: [PATCH] staging: rtl8723bs: collapse duplicate goto exit conditions
  2026-03-17 13:55 [PATCH] staging: rtl8723bs: collapse duplicate goto exit conditions Marco Antonio Solis Segura
@ 2026-03-18 15:54 ` Greg KH
  2026-03-18 22:51   ` Marco Solis
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2026-03-18 15:54 UTC (permalink / raw)
  To: Marco Antonio Solis Segura; +Cc: linux-staging, linux-kernel

On Tue, Mar 17, 2026 at 07:55:48AM -0600, Marco Antonio Solis Segura wrote:
> Combine _FAIL and RTW_RX_HANDLED cases into a single conditional,
> removing redundant branches and simplifying control flow.
> No functional changes intended.
> 
> Signed-off-by: Marco Antonio Solis Segura <mshdevv@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_recv.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
> index 337671b1211f..20f5f8760ba0 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_recv.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
> @@ -1339,12 +1339,8 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f
>  
>  	}
>  
> -	if (ret == _FAIL) {
> +	if (ret == _FAIL || ret == RTW_RX_HANDLED)
>  		goto exit;
> -	} else if (ret == RTW_RX_HANDLED) {
> -		goto exit;
> -	}
> -
>  
>  	if (!psta) {
>  		ret = _FAIL;
> -- 
> 2.53.0
> 
> 

Someone sent this _right_ before you did:
	https://lore.kernel.org/r/20260317100723.72476-1-giacomodiclerico@gmail.com

Are you all working on this together?  What project is asking you to
send patches for this driver?

thanks,

greg k-h

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

* Re: [PATCH] staging: rtl8723bs: collapse duplicate goto exit conditions
  2026-03-18 15:54 ` Greg KH
@ 2026-03-18 22:51   ` Marco Solis
  0 siblings, 0 replies; 3+ messages in thread
From: Marco Solis @ 2026-03-18 22:51 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging, linux-kernel

On Wed, Mar 18, 2026 at 9:54 AM Greg KH <gregkh@linuxfoundation.org> wrote:

> Someone sent this _right_ before you did:
>         https://lore.kernel.org/r/20260317100723.72476-1-giacomodiclerico@gmail.com
>
> Are you all working on this together?  What project is asking you to
> send patches for this driver?
>
> thanks,
>
> greg k-h

Hi Greg,

No, I am not working with Giacomo or part of any organized project.
I'm an independent developer working on my own to improve my systems
engineering skills and contribute to the kernel.

Since Giacomo's patch was sent first, please feel free to drop mine.
I'll focus on fixing some checkpatch.pl false positives as Dan
Carpenter suggested in another thread.

Thanks for your time,

Marco Solis

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

end of thread, other threads:[~2026-03-18 22:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 13:55 [PATCH] staging: rtl8723bs: collapse duplicate goto exit conditions Marco Antonio Solis Segura
2026-03-18 15:54 ` Greg KH
2026-03-18 22:51   ` Marco Solis

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