Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1916286imm; Tue, 10 Jul 2018 09:57:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKWt7tHaDB2ar2mrK/xmJo9CHxwU+Odl1eOTDPoGcPXbCNW1sk4r/LipGXB0SQNX02bLPv X-Received: by 2002:a63:4a61:: with SMTP id j33-v6mr21805297pgl.436.1531241862475; Tue, 10 Jul 2018 09:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531241862; cv=none; d=google.com; s=arc-20160816; b=U2VNndOIur1VqEG614IZMIn1991MT2XuF3j7L6LClQ/3bkADEFTAdux7vFNK0eJ4nK kxJg2udS9I8nRqZvZ8dPVuYYGX6K0nHtMo+xCASGSokDWo1o1QpXAa/IANlwGP83sLSD aDnlgFdv2Jzs2MpWyVjka68SOHUrZfX/9UOktdlRj52Zl4/6qkfjRCFrgnkk9MLQiwRM qKmDSGXMeRsBn9xEXKJVDW9P5N5TLCxnDQ5vz0WRYZD4vYrP26QNOmYmLdNpN0duuHif TlxO2lv0PW4qaeh9ks/bmENQmuzc6gBoWLnooS3UGjTXTLJzcdR9NvhFIOcXe2xXm7pU m1sQ== 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=3dVfhoHIt+BbjDfJRojhSjqWipwUqcVVwHBMiDQtAik=; b=pOgvayzptL+1zNZgMYRC9r3QKM2QuO+nxbImZZ1uXBaOva0ZFvuFzCez2DMNfJnMFw drRIywERtsI+lXZNj77FYKHxx2Sh5AI4hpkFLLphV4QP++YJD9/4jeOMSliHk3GRvJ9n wAhNQ+EWwYq5NXGCj7I+YRDYmMcCwXO+5PQEcMB+osSAqkpxvaeFZTiLKj/PEqkSQMR8 ah+IfU9ngDC0c3BJ7DtfkRq8OEOabICSccApp4mmUWvg7fjTy3hraTcdfb+HG4m0sj2H TOik4e4tdl9fKa/Oqr7RtO9TjCcGNXBeiFKuZJ+1/topo3oHru8H9yy/tR3kimwstTuB suHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=udqkSccT; 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 8-v6si9795504pfw.89.2018.07.10.09.57.27; Tue, 10 Jul 2018 09:57:42 -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=udqkSccT; 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 S933970AbeGJPGH (ORCPT + 99 others); Tue, 10 Jul 2018 11:06:07 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:42552 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933912AbeGJPGC (ORCPT ); Tue, 10 Jul 2018 11:06:02 -0400 Received: by mail-ed1-f67.google.com with SMTP id g12-v6so16816082edi.9 for ; Tue, 10 Jul 2018 08:06:01 -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=3dVfhoHIt+BbjDfJRojhSjqWipwUqcVVwHBMiDQtAik=; b=udqkSccTO8XiklCnw6Q98mZLX+QCvm+eHlJwNHN4Eyiz1/MJVCtTcI0l8LnHw/75CH per9jYZUofoWTuAiWzCbqOtW3BK/yUya1y817QBcEgbnlKoQubxz30+iaCTCViEvczil SPhMRQ5be0AwiFSiKLS+C2e62HoV7AHo2i357GkSlbk4Gg6QDakXcPl5sijTX5Eoo1SY ludFsnKxsfYkxrjMPIWn6zeH5Dm7X5bD+vqzNTYFC+UIwu/TW4vuKAMwYZcQt2Uhd30Q YKB4OwbnKrSdnpxjSmfjT4DU5DbxLy9Cbt6dU21ITx0iaIlVR4gWkzW3UOPUVFdaoMw5 nY8A== 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=3dVfhoHIt+BbjDfJRojhSjqWipwUqcVVwHBMiDQtAik=; b=j2xtXHR2elqiLQffYd/r5z/+dOLVwErdF9oK3j12p8+WbW5a3M0xqceEgSSHOuVTE7 Aujb+Y0qMVkpSWmun2G/1WYV8ZGjkzP9BazDs+lgoelup62K0W/9X4KXfoomoG1qW/k7 wZ8IRksnwW4DthAbtPE4+1I3NHU6Apy0ralhAofHc0a4SgAnJZgN2abh/+fBNwPMgvth I5MpRqHlMDFClq+MN4ZGaYJ0N9W9PFAavbt0KxJKN82Ehm2Gq5mbe1OMsesuw/FqY0a9 TYdifYwN64KT91NDQroi5hpS+mCgBE5dArRBCI73+gK8xodTjee0MyyaXhgn0pvs8ojd 6swg== X-Gm-Message-State: APt69E24hLnguAHGJvWHgcPWKZfHJJGXhVWu8/YE9WnvIWVUyowXr/4Z +pjHDZi1DrMVCSHdfQ1lBqbH80dL X-Received: by 2002:a50:b376:: with SMTP id r51-v6mr5539936edd.145.1531235160352; Tue, 10 Jul 2018 08:06:00 -0700 (PDT) Received: from localhost.localdomain ([109.76.156.5]) by smtp.gmail.com with ESMTPSA id s19-v6sm1895389edd.53.2018.07.10.08.05.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 08:05:59 -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 v2 6/8] staging:rtl8192u: Remove unnecessary parentheses - Coding Style Date: Tue, 10 Jul 2018 16:05:21 +0100 Message-Id: <20180710150523.17384-7-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710150523.17384-1-johnfwhitmore@gmail.com> References: <20180710150523.17384-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 d916cc5b97db..023f23d2eb67 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