From: Dan Carpenter <dan.carpenter@linaro.org>
To: "Jose A. Perez de Azpillaga" <azpijr@gmail.com>
Cc: linux-staging@lists.linux.dev,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michael Straube <straube.linux@gmail.com>,
Hans de Goede <hansg@kernel.org>,
Khushal Chitturi <khushalchitturi@gmail.com>,
Vivek BalachandharTN <vivek.balachandhar@gmail.com>,
Luka Gejak <luka.gejak@linux.dev>,
Ethan Tidmore <ethantidmore06@gmail.com>,
Artur Stupa <arthur.stupa@gmail.com>,
Zhuoheng Li <lizhuoheng@kylinos.cn>,
Nino Zhang <ninozhang001@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: Reduce indentation in rtw_joinbss_event_prehandle
Date: Thu, 19 Mar 2026 11:11:45 +0300 [thread overview]
Message-ID: <abuvwYrjkXZAaPxx@stanley.mountain> (raw)
In-Reply-To: <20260318225550.535368-1-azpijr@gmail.com>
On Wed, Mar 18, 2026 at 11:55:44PM +0100, Jose A. Perez de Azpillaga wrote:
> + if (pnetwork->join_res == -4) {
> rtw_reset_securitypriv(adapter);
> _set_timer(&pmlmepriv->assoc_timer, 1);
>
> if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))
> _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
>
> - } else {/* if join_res < 0 (join fails), then try again */
> + goto ignore_joinbss_callback;
> + }
> +
> + if (pnetwork->join_res <= 0) {
> +#ifdef REJOIN
REJOIN is never defined. Just delete this code in a separate patch
at the start.
> + int res = _FAIL;
>
> - #ifdef REJOIN
> - res = _FAIL;
> if (retry < 2)
> res = rtw_select_and_join_from_scanned_queue(pmlmepriv);
>
> @@ -1260,21 +1197,92 @@ void rtw_joinbss_event_prehandle(struct adapter *adapter, u8 *pbuf)
> /* extend time of assoc_timer */
> _set_timer(&pmlmepriv->assoc_timer, MAX_JOIN_TIMEOUT);
> retry++;
> - } else if (res == 2) {/* there is no need to wait for join */
> + } else if (res == 2) { /* there is no need to wait for join */
Don't do unrelated changes.
The truth is I haven't reviewed this patch properly. I see you have
made other changes unrelated to indenting. Don't do things like:
- ptarget_wlan = rtw_find_network(&pmlmepriv->scanned_queue, cur_network->network.mac_address);
+ ptarget_wlan = rtw_find_network(&pmlmepriv->scanned_queue,
+ cur_network->network.mac_address);
Those make it harder for me to review and they're against the rules.
regards,
dan carpenter
prev parent reply other threads:[~2026-03-19 8:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 22:55 [PATCH] staging: rtl8723bs: Reduce indentation in rtw_joinbss_event_prehandle Jose A. Perez de Azpillaga
2026-03-19 8:04 ` Luka Gejak
2026-03-19 8:11 ` Dan Carpenter [this message]
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=abuvwYrjkXZAaPxx@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=arthur.stupa@gmail.com \
--cc=azpijr@gmail.com \
--cc=ethantidmore06@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=khushalchitturi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=lizhuoheng@kylinos.cn \
--cc=luka.gejak@linux.dev \
--cc=ninozhang001@gmail.com \
--cc=straube.linux@gmail.com \
--cc=vivek.balachandhar@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.