public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: wlan-ng: cfg80211.c: removed unnecessary parenthesis to match coding style
@ 2023-08-08 22:12 Diogo Silva
  2023-08-09  9:46 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Diogo Silva @ 2023-08-08 22:12 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-staging, linux-kernel; +Cc: Diogo Silva

Signed-off-by: Diogo Silva <diogompaissilva@gmail.com>
---
 drivers/staging/wlan-ng/cfg80211.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 471bb310176f..57c16afe8773 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -247,7 +247,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
 
 	memset(sinfo, 0, sizeof(*sinfo));
 
-	if (!wlandev || (wlandev->msdstate != WLAN_MSD_RUNNING))
+	if (!wlandev || wlandev->msdstate != WLAN_MSD_RUNNING)
 		return -EOPNOTSUPP;
 
 	/* build request message */
@@ -351,8 +351,8 @@ static int prism2_scan(struct wiphy *wiphy,
 		msg2->bssindex.data = i;
 
 		result = p80211req_dorequest(wlandev, (u8 *)&msg2);
-		if ((result != 0) ||
-		    (msg2->resultcode.data != P80211ENUM_resultcode_success)) {
+		if (result != 0 ||
+		    msg2->resultcode.data != P80211ENUM_resultcode_success) {
 			break;
 		}
 
@@ -459,11 +459,11 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
 	}
 
 	/* Set the authorization */
-	if ((sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) ||
-	    ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && !is_wep))
+	if (sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM ||
+	    (sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC && !is_wep))
 		msg_join.authtype.data = P80211ENUM_authalg_opensystem;
-	else if ((sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY) ||
-		 ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
+	else if (sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY ||
+		 (sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC && is_wep))
 		msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
 	else
 		netdev_warn(dev,
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* Re: [PATCH] staging: wlan-ng: cfg80211.c: removed unnecessary parenthesis to match coding style
@ 2023-08-08 23:24 Diogo Silva
  0 siblings, 0 replies; 5+ messages in thread
From: Diogo Silva @ 2023-08-08 23:24 UTC (permalink / raw)
  To: dan.carpenter
  Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, diogompaissilva

Hi Dan,

Thanks for the help. I did not realize it was a re-submit. I tried to look for anything similiar but since I did not find (my fault) I thought the bot had assumed it was a re-submit because of the empty message body. I will try to find something else to work on!

Also, thanks for the resources (lore.kernel.org and the v2 patch instructions).

Best regards,
Diogo Silva
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-09 11:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 22:12 [PATCH] staging: wlan-ng: cfg80211.c: removed unnecessary parenthesis to match coding style Diogo Silva
2023-08-09  9:46 ` Greg Kroah-Hartman
2023-08-08 23:13   ` Diogo Silva
2023-08-09 10:42     ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2023-08-08 23:24 Diogo Silva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox