Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp750468imm; Sat, 7 Jul 2018 07:58:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdi1iEZ3NniJo5Cz30Y28ceV7EWPhlV0Nz3giafIhKVZV9bN0fDZ9mVtBbIc4mckwSCOpc8 X-Received: by 2002:a63:1350:: with SMTP id 16-v6mr7073117pgt.214.1530975528935; Sat, 07 Jul 2018 07:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530975528; cv=none; d=google.com; s=arc-20160816; b=WInV80x0EYuRnmcaTH7jX9fXaqTHH6shM9SrM3kws3QYWLOPzU/+0P7KHakBWUaLwi MO+p6BGXWSRgXcd5XTPDnCbPrvF6PUBO58f7YnOw6G14lPgcT+jMmK89xdXDbmxESUxU z/S4p4XwWTt0Rjo0F8qsBChZInvySgxjEQoI4yvQzASxycx+ayio4fW1TsxFNZWZ/hVe 9j0LLGaP6sDq4cjwG+WKjkwYlgQPDb4+E2eB830rarnF9vHiUuhp4cjsYu/KeaN5i0Xq k4wqa5JZxRSMZuCYden+/tH+eySSHnEks14ZFM0LfFLv6Z56fA28BrSj6XIszPcjpxHq zTFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qYnd26S5+ltBNLdfgUTTRKjpFzwKg0cdnvqwOi4lhEc=; b=0OUssb2HGwxiaHmso47LBJKS6Uybn6BRJQZHvb69GK1AIZfzAqMiTq12O1d1MlwNqY 3KS7YcxrVBKlsc22LdE54H/f2jMdCSE+kkORgvbO+6xqgNu0/X2kCZ62NFz3EFobVliX wbFaU6YSliasOW9iaevCI/fhttZc8f8+6V04mZvjOJaH3SYL5I0tsLCPRUaaxNX4Hw6L 0CnB4962vZX15awpKJ+8dX8nqIAmOLKIMmnFPKrKWxKwpKb/8UKUnQO0iYJuJJfEn18H W0eEUJNJAaTiWfrsh0G8I4NNZ4nOMH3hgH5j2tWiU4oUceVaLCtngS0zwnlAVu3bEVN6 3vyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PQMh/y3v"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce9-v6si10994000plb.364.2018.07.07.07.58.34; Sat, 07 Jul 2018 07:58:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="PQMh/y3v"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932823AbeGGO4d (ORCPT + 99 others); Sat, 7 Jul 2018 10:56:33 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41667 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753977AbeGGOzn (ORCPT ); Sat, 7 Jul 2018 10:55:43 -0400 Received: by mail-wr1-f68.google.com with SMTP id j5-v6so198744wrr.8 for ; Sat, 07 Jul 2018 07:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qYnd26S5+ltBNLdfgUTTRKjpFzwKg0cdnvqwOi4lhEc=; b=PQMh/y3vV8fH6jGtuxYr1F0IPT0K7Fc1cS290wbE7huKUghW8f9UroYtm8phWau+cQ 74KMnLfeGfmc34BnkLlis2ivhEJyYF4xZyoWBw9nixCeFh6MmU1C+D+MTcPhzQCxH4er 9RN+nzOp2R5Gn2g6ZDqbJd8eOcPhSMSH9+OjL5UiqiJO3vfsBwuqVPmhnw6tZRVAW2Mf FNPXZn4a0LlFjcgCVtVoTqqLt87rZJ8gzhBwfWeEqEucrtSNUljwavCQNNgiuo+0x6oo yTbcOT3YTrUIa6DmFtULsEfLtYooW2QESAOC3MecZMmyPmLrv3JHBBxuT92S2D+pOKLc 2BKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qYnd26S5+ltBNLdfgUTTRKjpFzwKg0cdnvqwOi4lhEc=; b=ik8kg4w9XbV20kzSXfKuORc1rBiSxWXzh5M5nPP8RmBgnbF5IAhG0U624Fn984nfuQ HlQzLAZHJO5z6mr2ixhMV8M7/F9yf1hwSEUDpmCJGoCDYq3LFQG8Kh46xrKv/M/6xk0u BSwgRAkj2+e37IkygdVv3WZfIgMrWD0YZvsXEh5ym8YOcK8tmfLRFaaUILf7liwkgqQS bam+B/Z97Mz67fEPLe4FGhJ2f5/lZ8PI7R9TfXQZVfOORJfhxVefi+hjFDFzbPhdY6rS gjNdaQQzaiYjWl0vIplaedU3eFPugRXJByuEHBKgIIlFWSpdfEloTaKkNN3tjY5zQZAj MzOQ== X-Gm-Message-State: APt69E1ZsoohJ6lgZ05HYfmh1pRa+GS/OYsHoz426OI+IYgu+pT8U0ZQ Pn49VVNI+EVAXvLqQTMS0DKobQ== X-Received: by 2002:adf:f210:: with SMTP id p16-v6mr10657152wro.184.1530975342451; Sat, 07 Jul 2018 07:55:42 -0700 (PDT) Received: from localhost.localdomain (host81-152-164-58.range81-152.btcentralplus.com. [81.152.164.58]) by smtp.gmail.com with ESMTPSA id 131-v6sm20714923wmm.31.2018.07.07.07.55.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Jul 2018 07:55:41 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, aastha.gupta4104@gmail.com, keescook@chromium.org, pombredanne@nexb.com, kstewart@linuxfoundation.org, tglx@linutronix.de, John Whitmore Subject: [PATCH 10/12] staging:rtl8192u: Remove unnecessary parentheses - Coding Style Date: Sat, 7 Jul 2018 15:55:11 +0100 Message-Id: <20180707145513.15325-10-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180707145513.15325-1-johnfwhitmore@gmail.com> References: <20180707145513.15325-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org checkpatch.pl flags unnecessary parentheses so removed from code. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index 7bc2e94792ca..fd2cf8d8d593 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -699,9 +699,9 @@ static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *d encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len)); /* HT ralated element */ - tmp_ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap); + tmp_ht_cap_buf = (u8 *)&ieee->pHTInfo->SelfHTCap; tmp_ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap); - tmp_ht_info_buf = (u8 *)&(ieee->pHTInfo->SelfHTInfo); + tmp_ht_info_buf = (u8 *)&ieee->pHTInfo->SelfHTInfo; tmp_ht_info_len = sizeof(ieee->pHTInfo->SelfHTInfo); HTConstructCapabilityElement(ieee, tmp_ht_cap_buf, &tmp_ht_cap_len, encrypt); HTConstructInfoElement(ieee, tmp_ht_info_buf, &tmp_ht_info_len, encrypt); @@ -973,7 +973,7 @@ ieee80211_association_req(struct ieee80211_network *beacon, /* Include High Throuput capability && Realtek proprietary */ if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) { - ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap); + ht_cap_buf = (u8 *)&ieee->pHTInfo->SelfHTCap; ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap); HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len, encrypt); if (ieee->pHTInfo->bCurrentRT2RTAggregation) { @@ -1413,7 +1413,7 @@ inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee ieee->current_network.bssht.bdSupportHT) { /*WB, 2008.09.09:bCurrentHTSupport and bEnableHT two flags are going to put together to check whether we are in HT now, so needn't to check bEnableHT flags here. That's is to say we will set to HT support whenever joined AP has the ability to support HT. And whether we are in HT or not, please check bCurrentHTSupport&&bEnableHT now please.*/ // ieee->pHTInfo->bCurrentHTSupport = true; - HTResetSelfAndSavePeerSetting(ieee, &(ieee->current_network)); + HTResetSelfAndSavePeerSetting(ieee, &ieee->current_network); } else { ieee->pHTInfo->bCurrentHTSupport = false; } -- 2.18.0