Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2997468imm; Sun, 24 Jun 2018 09:04:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJxkaZsbekcI1O+tfaVgDWNQaGEaOhpfrPT9WrRNaTolKe2aIHIqhMBWKxUJYH8iXkcXhqd X-Received: by 2002:a63:41c1:: with SMTP id o184-v6mr8049402pga.323.1529856268600; Sun, 24 Jun 2018 09:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529856268; cv=none; d=google.com; s=arc-20160816; b=IVNebFAFxylEqJ5o/sPHA1w1kfnlc4MYjZawVmwSjG0VY66uwPnQm/8MDC+9b+rC4c VTpDW57CNDa8ZrTU/j7WivIKWFDdhk0GBG/Dy9Q6fNDdm939cDV7avtpBY5TIgiv7vWn jMq1CQcG08CMWuFIgHC4HnZn/kQOiSDOmFuserSVhCzBjAxTcgBmFBhozxt3Y+HBhFj3 0F+dl1diwhq9PSLMVpPVqMs/hqvH+qisO7uyKx5HNM16Fko0/ayfe6TDXx9/yLYBKt5E 2Td13jxL8I6zv6rzi5MLenJoB8LymyJLzG/qCDKPRu6tLMp74cvTVXGoe9JDFHlVWiR1 n/Pg== 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=Omaajg3zht5wN0A/kRIdRl0rgfwuHeYz/DBwFOGT88I=; b=weh8pVh2cN6LARooZt2pQiMvN5LjG7wIi2JT+fQpVPKFdp7i7/7TY0Dl3W9/QgCiLp ASPm4ohee+av4r9xSRBXaLmTEyRZXdFDVz8YkDwpFURmimfdZLekSeU6l3bLBb05qwYr AB1Lki0e078FKHdDF8DREQcG+poTx+bMewcUXRchrpzWqGbwck29SZi2bk6gNnfX0vA9 ZMD2jOXGUgaoXJXf+csP87BtHS4E0+rKnNh7Og2sE2Y8QopXd8kBuwqEoFUr+5HoiPKX Xec1FxQ5dFvxkVPFAXNrIp8ROUPjtM9A9SgcR8F+1ope+GY+JDmiRdVpEShk+s2VgqZK n3YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GMC1WIQt; 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 q9-v6si11734013pll.370.2018.06.24.09.04.14; Sun, 24 Jun 2018 09:04:28 -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=GMC1WIQt; 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 S1755927AbeFXPlG (ORCPT + 99 others); Sun, 24 Jun 2018 11:41:06 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:45789 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755896AbeFXPlD (ORCPT ); Sun, 24 Jun 2018 11:41:03 -0400 Received: by mail-wr0-f194.google.com with SMTP id s7-v6so1911163wro.12 for ; Sun, 24 Jun 2018 08:41:02 -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=Omaajg3zht5wN0A/kRIdRl0rgfwuHeYz/DBwFOGT88I=; b=GMC1WIQtq00OTrTgPneoZfG4jrI4ZKMm4OOqVVjDHWJq30zfEp0wUowVXsQVyLEKjy vxLDA0XrNH5YSBm4T/wQB0z69jTLtMEhQH3bjmzUGlUHNFm7QdDfRV6EEsqdUf+8G/ee f6nJ3RcI7tOI/t0oaCJ1RjYpQLwQ82g2JRZfmj+XmGc6lej6Lu8tdrQKmPAlITSd1li+ rpLqkEPuVp7ht537aI44Qmsnei5lDcz1im9FtCZF+C3KEYgLUdZhrxZbsIrRRunR6T5R InUEdk02GuJlITc0WKB9kA2qFoGuFor1VXVAdK20+6I2HTgXRisN5XTiccR/uQfFHzhY 4v0w== 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=Omaajg3zht5wN0A/kRIdRl0rgfwuHeYz/DBwFOGT88I=; b=DRKD8B2rCY2nmH2yskTGJXQgbvHNfz7jS/Zk4vG8bvcBnlugyWjPBxQD/epoBXnkt2 9uovgi28y2A+tuByOZikniScDhzM7s5CuuhidejOD5Vsx/O5+TG7UuhlhtKH+cKvgpY9 rrM8gxbCSpiRFS1cuiwLUtJHWIEm09TXIO1TO+wDLxP7OBdSOBN8/fU/cf4lRPyheRB6 xb7Lh53UjkWFlzos3w0KMCUodaGEJ+mGp8vNeLqXlptyi2cp/rukGLVg4TeGSXzAkutZ cNpxmbbRHhLuB4gtUo2RfxQyZPiC9pfNIXYPMN4ow/VO7cAphFzH1yxZpDF59T3WU6kx ckmA== X-Gm-Message-State: APt69E3mEkT+By3jdHhaiVkLV93bwbY0KytKCB1t3Fq1tS5doPn+530Q PWfqADkHmcP7PFOcSIfmIk5JJu+x X-Received: by 2002:adf:d204:: with SMTP id g4-v6mr7457975wri.229.1529854861383; Sun, 24 Jun 2018 08:41:01 -0700 (PDT) Received: from localhost.localdomain (host86-190-130-185.range86-190.btcentralplus.com. [86.190.130.185]) by smtp.gmail.com with ESMTPSA id w12-v6sm2782920wrp.69.2018.06.24.08.40.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 08:41:00 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, John Whitmore Subject: [PATCH v3 6/8] staging: rtl8192u: Remove braces from single statement blocks - Style Date: Sun, 24 Jun 2018 16:40:25 +0100 Message-Id: <20180624154027.27654-7-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624154027.27654-1-johnfwhitmore@gmail.com> References: <20180624154027.27654-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed the unrequired braces from single statement blocks - Coding Style. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index 6793a9aabb2f..227710419123 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c @@ -549,11 +549,10 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u //HT capability info pCapELE->AdvCoding = 0; // This feature is not supported now!! - if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) { + if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) pCapELE->ChlWidth = 0; - } else { + else pCapELE->ChlWidth = (pHT->bRegBW40MHz ? 1 : 0); - } // pCapELE->ChlWidth = (pHT->bRegBW40MHz?1:0); pCapELE->MimoPwrSave = pHT->SelfMimoPs; @@ -721,9 +720,8 @@ void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, *posRT2RTAgg++ = 0x01; *posRT2RTAgg = 0x10;//*posRT2RTAgg = 0x02; - if (ieee->bSupportRemoteWakeUp) { + if (ieee->bSupportRemoteWakeUp) *posRT2RTAgg |= 0x08;//RT_HT_CAP_USE_WOW; - } *len = 6 + 2; return; @@ -861,12 +859,10 @@ static u8 HTFilterMCSRate(struct ieee80211_device *ieee, u8 *pSupportMCS, u8 i = 0; // filter out operational rate set not supported by AP, the length of it is 16 - for (i = 0; i <= 15; i++) { + for (i = 0; i <= 15; i++) pOperateMCS[i] = ieee->Regdot11HTOperationalRateSet[i] & pSupportMCS[i]; - } // TODO: adjust our operational rate set according to our channel bandwidth, STBC and Antenna number - /* * TODO: fill suggested rate adaptive rate index and give firmware info * using Tx command packet we also shall suggested the first start rate -- 2.17.1