[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <so663sd33rgvgzufcxe4oc666os2gq5nrdinqaqquksrkvnr3c@odkxhcxhb3ux>
Date: Wed, 17 Jan 2024 19:11:17 +1300
From: Hoorad Farrokh <hourrad.f@...il.com>
To: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: prism2mgmt: Removed unnecessary parentheses in if
statment
Fixed a Linux coding style problem.
Reported by checkpatch:
CHECK: Unnecessary parentheses around 'msg->prismheader.status ==
P80211ENUM_msgitem_status_data_ok'
Signed-off-by: Hoorad Farrokh <hourrad.f@...il.com>
---
drivers/staging/wlan-ng/prism2mgmt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index d5737166564e..a1adf69ba9f9 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -1288,8 +1288,8 @@ 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) &&
+ if (msg->prismheader.status ==
+ P80211ENUM_msgitem_status_data_ok &&
(msg->prismheader.data == P80211ENUM_truth_true)) {
hw->sniffhdr = 0;
wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
--
2.42.0
Powered by blists - more mailing lists