From: Daniel Hammer <daniel.hammer120@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] staging: wlan-ng: prism2mgmt.c: remove needless parentheses to align with kernel coding style.
Date: Sun, 10 Sep 2023 18:05:53 +0400 [thread overview]
Message-ID: <ZP3NQSQwnmYAHQq+@daniel-ubuntu> (raw)
Remove unnecessary parentheses as detected by checkpatch.pl.
Signed-off-by: Daniel Hammer <daniel.hammer120@gmail.com>
---
drivers/staging/wlan-ng/prism2mgmt.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index d5737166564e..201f07229962 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -1227,9 +1227,9 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
word, result);
goto failed;
}
- if ((msg->keepwepflags.status ==
- P80211ENUM_msgitem_status_data_ok) &&
- (msg->keepwepflags.data != P80211ENUM_truth_true)) {
+ if (msg->keepwepflags.status ==
+ P80211ENUM_msgitem_status_data_ok &&
+ msg->keepwepflags.data != P80211ENUM_truth_true) {
/* Set the wepflags for no decryption */
word = HFA384x_WEPFLAGS_DISABLE_TXCRYPT |
HFA384x_WEPFLAGS_DISABLE_RXCRYPT;
@@ -1249,9 +1249,9 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
}
/* Do we want to strip the FCS in monitor mode? */
- if ((msg->stripfcs.status ==
- P80211ENUM_msgitem_status_data_ok) &&
- (msg->stripfcs.data == P80211ENUM_truth_true)) {
+ if (msg->stripfcs.status ==
+ P80211ENUM_msgitem_status_data_ok &&
+ msg->stripfcs.data == P80211ENUM_truth_true) {
hw->sniff_fcs = 0;
} else {
hw->sniff_fcs = 1;
@@ -1288,9 +1288,9 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
/* Set the driver state */
/* Do we want the prism2 header? */
- if ((msg->prismheader.status ==
- P80211ENUM_msgitem_status_data_ok) &&
- (msg->prismheader.data == P80211ENUM_truth_true)) {
+ if (msg->prismheader.status ==
+ P80211ENUM_msgitem_status_data_ok &&
+ msg->prismheader.data == P80211ENUM_truth_true) {
hw->sniffhdr = 0;
wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
} else if ((msg->wlanheader.status ==
--
2.34.1
next reply other threads:[~2023-09-10 14:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-10 14:05 Daniel Hammer [this message]
2023-09-10 15:03 ` [PATCH] staging: wlan-ng: prism2mgmt.c: remove needless parentheses to align with kernel coding style Greg KH
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=ZP3NQSQwnmYAHQq+@daniel-ubuntu \
--to=daniel.hammer120@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@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