From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B72C7F for ; Sat, 25 Mar 2023 00:22:29 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso4090419wmb.0 for ; Fri, 24 Mar 2023 17:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679703748; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=QZt+Ekeb+RCGZ+UZwPqy3x6FR0k7BKBwPHxkQw0mM8A=; b=iinbtO0WxroDjLVGptKUROdY+6YpkxjN8d1aBZHfZId/OS7wpHcy1DcGFZ074o0Sjh LNo7rlNGH1J4GpRTPM7kTgcKEi01nXpXzt5iD47oHe/Gjv1+c6ex3gB6RY+jomN68mL3 R4VzXJsiBvP6HHnJR1E7b9hHx1vAT61ZS6KCEgoD0IWQJO9uGfhjLI61kF/YxfJetklJ 29F7MmLjVGUO1EbeKPZcV8teAXp9PATMCo56SH7VKgcGTH806W9scd4DvBJRGi17ls1b royQ6zR6Cg6gwfOq+l9HoCUb66lgnJe6SEqiC0GP/iybWQrBrRrHUAz66SPTANE2Lium xxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679703748; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QZt+Ekeb+RCGZ+UZwPqy3x6FR0k7BKBwPHxkQw0mM8A=; b=bW+d54YhohLNKipT2O8yapy2yn1mBK2X/rwugCjhC5TM1SpDEO7uhNPWsnUs0vCvtN rdssfw+URb/Jxgw1p/ZzN9Xb4A69+2lcD96ylzzlLMIBYZKcDQXDgBxkEtXkIEZ8J8u8 +1o4c7s78WzCDWvEvDJXWIA66l4L6x4QT0Z8+i+WWHFRzDa+ZVHVund2RNA6SRbwpi0+ KafhqdCt5vEQT+wzts1+4AXvZgfs8ufjhqpNWWZvLGc3w0yXt/uqX00drQ8RCqOpuDmQ lY5FN/7DOzgShoj1tqNMzLFsvV61PfIt0wij04wOYMeXUBhwWo+MAU+nBdEmDubVQN27 B47w== X-Gm-Message-State: AO0yUKXpcgE12zzYNpAnNyByhGlXdUvTDnAxi4WRB5IzBmFSEAoXAmIC b9jTDbwV8luwBZgVgJYHPA== X-Google-Smtp-Source: AK7set8T1iePvuqZfLCPVXRJ0LyYL+Y8Ijn3PKzS9an2BhNdV6G9mhN5FVsLUALI1+9WrJ5Fx9o2ug== X-Received: by 2002:a05:600c:214:b0:3ee:1084:aa79 with SMTP id 20-20020a05600c021400b003ee1084aa79mr2922839wmi.20.1679703747788; Fri, 24 Mar 2023 17:22:27 -0700 (PDT) Received: from koolguy (dslb-002-205-192-117.002.205.pools.vodafone-ip.de. [2.205.192.117]) by smtp.gmail.com with ESMTPSA id x11-20020a05600c21cb00b003ede3e54ed7sm6292472wmj.6.2023.03.24.17.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 17:22:27 -0700 (PDT) Date: Sat, 25 Mar 2023 01:22:25 +0100 From: Dalvin-Ehinoma Noah Aiguobas To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH]: staging: wlan-ng: Remove unnecessary Parentheses Message-ID: <20230325002225.GA109622@koolguy> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Clean up Checkpatch issues by removing unnecessary Parentheses. Signed-off-by: Dalvin-Ehinoma Noah Aiguobas --- drivers/staging/wlan-ng/cfg80211.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c index 471bb310176f..0b4d40ec7456 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,8 +459,8 @@ 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)) @@ -478,7 +478,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev, result = prism2_domibset_uint32(wlandev, DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID, - sme->key_idx); + sme->key_idx); if (result) goto exit; -- 2.25.1