From: Jeff Johnson <quic_jjohnson@quicinc.com>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
<briannorris@chromium.org>
Cc: <kvalo@kernel.org>, <linux-wireless@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH] mwifiex: clean up some inconsistent indenting
Date: Fri, 10 Nov 2023 16:38:55 -0800 [thread overview]
Message-ID: <76eeb452-dd61-44ce-ae9c-a8f8afa83fb8@quicinc.com> (raw)
In-Reply-To: <20231110083327.7022-1-jiapeng.chong@linux.alibaba.com>
On 11/10/2023 12:33 AM, Jiapeng Chong wrote:
> No functional modification involved.
>
> drivers/net/wireless/marvell/mwifiex/sta_event.c:789 mwifiex_process_sta_event() warn: inconsistent indenting.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7226
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/net/wireless/marvell/mwifiex/sta_event.c | 14 ++++++--------
> 1 file changed, 6 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/net/wireless/marvell/mwifiex/sta_event.c b/drivers/net/wireless/marvell/mwifiex/sta_event.c
> index df9cdd10a494..9dd3b6d71026 100644
> --- a/drivers/net/wireless/marvell/mwifiex/sta_event.c
> +++ b/drivers/net/wireless/marvell/mwifiex/sta_event.c
> @@ -762,7 +762,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
> mwifiex_dbg(adapter, EVENT, "info: EVENT: AWAKE\n");
> if (!adapter->pps_uapsd_mode &&
> (priv->port_open ||
> - (priv->bss_mode == NL80211_IFTYPE_ADHOC)) &&
> + (priv->bss_mode == NL80211_IFTYPE_ADHOC)) &&
this change looks incorrect to me
this condition is *inside* the parenthesis from the beginning of the
previous line, and hence this should align after that parenthesis, not
with that parenthesis, which is what the existing code is doing
> priv->media_connected && adapter->sleep_period.period) {
> adapter->pps_uapsd_mode = true;
> mwifiex_dbg(adapter, EVENT,
> @@ -773,7 +773,7 @@ int mwifiex_process_sta_event(struct mwifiex_private *priv)
> if (mwifiex_check_last_packet_indication(priv)) {
> if (adapter->data_sent ||
> (adapter->if_ops.is_port_ready &&
> - !adapter->if_ops.is_port_ready(priv))) {
> + !adapter->if_ops.is_port_ready(priv))) {
same thing here
> adapter->ps_state = PS_STATE_AWAKE;
> adapter->pm_wakeup_card_req = false;
> adapter->pm_wakeup_fw_try = false;
next prev parent reply other threads:[~2023-11-11 0:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 8:33 Jiapeng Chong
2023-11-10 21:39 ` Johannes Berg
2023-11-11 0:38 ` Jeff Johnson [this message]
2023-11-11 0:57 ` Johannes Berg
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=76eeb452-dd61-44ce-ae9c-a8f8afa83fb8@quicinc.com \
--to=quic_jjohnson@quicinc.com \
--cc=abaci@linux.alibaba.com \
--cc=briannorris@chromium.org \
--cc=jiapeng.chong@linux.alibaba.com \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
/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
all inboxes | Powered by JetHome®