From: Vivek BalachandharTN <vivek.balachandhar@gmail.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 15/16] staging: rtl8723bs: merge nested if conditions for clarity and tab problems
Date: Mon, 6 Oct 2025 03:42:12 -0400 [thread overview]
Message-ID: <1a50635f-4525-41dd-8d96-eeee5d25d526@gmail.com> (raw)
In-Reply-To: <aN924wqH--MgGEak@stanley.mountain>
Ack. I will do the changes after the merge window. Thanks for the
review, Dan.
Best,
Vivek
On 2025-10-03 3:10 a.m., Dan Carpenter wrote:
> On Thu, Oct 02, 2025 at 05:23:03PM +0000, Vivek BalachandharTN wrote:
>> Combine nested if conditions for clarity and fix tab indentation in one
>> place to match kernel coding style.
>>
>> No functional changes.
>>
>> Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@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 aa842905a467..f17b16fe8819 100644
>> --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
>> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
>> @@ -1254,8 +1254,8 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
>> rtw_free_stainfo(adapter, pcur_sta);
>>
>> ptarget_wlan = rtw_find_network(&pmlmepriv->scanned_queue, pnetwork->network.mac_address);
>> - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) {
>> - if (ptarget_wlan)
>> + if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true &&
>> + ptarget_wlan) {
>> ptarget_wlan->fixed = true;
>> }
> Delete the curly braces as well.
>
> regards,
> dan carpenter
>
next prev parent reply other threads:[~2025-10-06 7:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 17:22 [PATCH v4 00/16] staging: rtl8723bs: rtw_mlme.c mechanical cleanups Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 01/16] staging: rtl8723bs: fix spacing around operators Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 02/16] staging: rtl8723bs: remove unnecessary space after type cast Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 03/16] staging: rtl8723bs: fix overlong lines to conform with kernel coding style Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 04/16] staging: rtl8723bs: align asterisk in block comment to fix formatting Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 05/16] staging: rtl8723bs: fix logical continuation style by moving to previous line Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 06/16] staging: rtl8723bs: fix indentation to align with open parenthesis Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 07/16] staging: rtl8723bs: adding asterisks in multi-line block comments Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 08/16] staging: rtl8723bs: remove space before semicolon Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 09/16] staging: rtl8723bs: fix excessive indentation in nested if statement Vivek BalachandharTN
2025-10-03 7:07 ` Dan Carpenter
2025-10-02 17:22 ` [PATCH v4 10/16] staging: rtl8723bs: fix unbalanced braces around conditional blocks Vivek BalachandharTN
2025-10-02 17:22 ` [PATCH v4 11/16] staging: rtl8723bs: remove unnecessary parentheses in conditional Vivek BalachandharTN
2025-10-02 17:23 ` [PATCH v4 12/16] staging: rtl8723bs: add braces to all arms of conditional statement Vivek BalachandharTN
2025-10-02 17:23 ` [PATCH v4 13/16] staging: rtl8723bs: fix line ending with '(' Vivek BalachandharTN
2025-10-02 17:23 ` [PATCH v4 14/16] staging: rtl8723bs: place constant on right side of comparison Vivek BalachandharTN
2025-10-02 17:23 ` [PATCH v4 15/16] staging: rtl8723bs: merge nested if conditions for clarity and tab problems Vivek BalachandharTN
2025-10-03 7:10 ` Dan Carpenter
2025-10-06 7:42 ` Vivek BalachandharTN [this message]
2025-10-02 17:23 ` [PATCH v4 16/16] staging: rtl8723bs: remove trailing whitespace in rtw_mlme.c comments Vivek BalachandharTN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a50635f-4525-41dd-8d96-eeee5d25d526@gmail.com \
--to=vivek.balachandhar@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).