Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c
@ 2025-12-15 21:09 Darshil Shah
  2025-12-17 13:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Darshil Shah @ 2025-12-15 21:09 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Darshil Shah

- Removed unnecessary parentheses around if conditions
- Removed redundant '== true' and '== false' comparisons

Signed-off-by: Darshil Shah <darshilshah7070@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 98704179ad35..e10f60d46dba 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -710,8 +710,8 @@ void rtw_surveydone_event_callback(struct adapter	*adapter, u8 *pbuf)
 	rtw_set_signal_stat_timer(&adapter->recvpriv);
 
 	if (pmlmepriv->to_join) {
-		if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) {
-			if (check_fwstate(pmlmepriv, _FW_LINKED) == false) {
+		if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) {
+			if (!check_fwstate(pmlmepriv, _FW_LINKED)) {
 				set_fwstate(pmlmepriv, _FW_UNDER_LINKING);
 
 				if (rtw_select_and_join_from_scanned_queue(pmlmepriv) == _SUCCESS) {
-- 
2.43.0


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

* Re: [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c
  2025-12-15 21:09 [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c Darshil Shah
@ 2025-12-17 13:09 ` Greg KH
       [not found]   ` <CAGQ2yWkLp62n+KbA9fEhGJXxK7o_XiM8Xi0Zu==J+ko45h-QFw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2025-12-17 13:09 UTC (permalink / raw)
  To: Darshil Shah; +Cc: linux-staging, linux-kernel

On Tue, Dec 16, 2025 at 02:39:01AM +0530, Darshil Shah wrote:
> - Removed unnecessary parentheses around if conditions

Only one if condition was changed.

> - Removed redundant '== true' and '== false' comparisons

Ok,I see why you removed this at the same time, but really, it was not
redundant, you just changed the operator to something else.

But why?  It's not really required by anything, what is driving this
change?

thanks,

greg k-h

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

* Re: [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c
       [not found]   ` <CAGQ2yWkLp62n+KbA9fEhGJXxK7o_XiM8Xi0Zu==J+ko45h-QFw@mail.gmail.com>
@ 2025-12-17 13:44     ` Darshil Shah
  0 siblings, 0 replies; 3+ messages in thread
From: Darshil Shah @ 2025-12-17 13:44 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging, linux-kernel

Thanks for the clarification.

This was intended as a minor style cleanup only.
Since there is no functional impact, I agree it’s not necessary.
I’ll drop this patch.

Thanks for the review.


On Wed, Dec 17, 2025 at 7:06 PM Darshil Shah <darshilshah7070@gmail.com> wrote:
>
> Thanks for the clarification.
>
> This was intended as a minor style cleanup only.
> Since there is no functional impact, I agree it’s not necessary.
> I’ll drop this patch.
>
> Thanks for the review.
>
> On Wed, Dec 17, 2025 at 6:39 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>>
>> On Tue, Dec 16, 2025 at 02:39:01AM +0530, Darshil Shah wrote:
>> > - Removed unnecessary parentheses around if conditions
>>
>> Only one if condition was changed.
>>
>> > - Removed redundant '== true' and '== false' comparisons
>>
>> Ok,I see why you removed this at the same time, but really, it was not
>> redundant, you just changed the operator to something else.
>>
>> But why?  It's not really required by anything, what is driving this
>> change?
>>
>> thanks,
>>
>> greg k-h

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

end of thread, other threads:[~2025-12-17 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 21:09 [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c Darshil Shah
2025-12-17 13:09 ` Greg KH
     [not found]   ` <CAGQ2yWkLp62n+KbA9fEhGJXxK7o_XiM8Xi0Zu==J+ko45h-QFw@mail.gmail.com>
2025-12-17 13:44     ` Darshil Shah

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