public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: "Jose A. Perez de Azpillaga" <azpijr@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev,
	Ethan Tidmore <ethantidmore06@gmail.com>,
	Dan Carpenter <dan.carpenter@linaro.org>,
	Nikolay Kulikov <nikolayof23@gmail.com>,
	Bryant Boatright <bryant.boatright@proton.me>,
	Siwanan Bungtong <horstaufmental@gmail.com>,
	Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>,
	Artur Stupa <arthur.stupa@gmail.com>,
	Navaneeth K <knavaneeth786@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2] staging: rtl8723bs: fix bitwise OR operator spacing
Date: Mon,  2 Mar 2026 22:51:54 +0100	[thread overview]
Message-ID: <20260302215208.67045-1-azpijr@gmail.com> (raw)

Fix spaces between bitwise OR operations rtw_action_frame_parse() for
better readability.

Signed-off-by: Jose A. Perez de Azpillaga <azpijr@gmail.com>
---
v2:
	- Remove curly braces for single-line statement
	- Move `!=` operator to the end of the first line

 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index dbd4bcc8cd28..9c1ee1411c9b 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -1123,11 +1123,9 @@ int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category, u8 *act

 	fc = le16_to_cpu(((struct ieee80211_hdr_3addr *)frame)->frame_control);

-	if ((fc & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE))
-		!= (IEEE80211_FTYPE_MGMT|IEEE80211_STYPE_ACTION)
-	) {
+	if ((fc & (IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) !=
+	    (IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION))
 		return false;
-	}

 	c = frame_body[0];

--
2.53.0


             reply	other threads:[~2026-03-02 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02 21:51 Jose A. Perez de Azpillaga [this message]
2026-03-02 22:03 ` [PATCH v2] staging: rtl8723bs: fix bitwise OR operator spacing Ethan Tidmore

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=20260302215208.67045-1-azpijr@gmail.com \
    --to=azpijr@gmail.com \
    --cc=abrahamadekunle50@gmail.com \
    --cc=arthur.stupa@gmail.com \
    --cc=bryant.boatright@proton.me \
    --cc=dan.carpenter@linaro.org \
    --cc=ethantidmore06@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=horstaufmental@gmail.com \
    --cc=knavaneeth786@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=nikolayof23@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox