Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1139398imm; Wed, 26 Sep 2018 12:21:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV63I6MdzkwO1r2CnWU9PFx+4Qb8rSvC/erTfsXa7yQDs9l3S6N9tUbRZGGiC13px5Q73zsLh X-Received: by 2002:a62:9cd7:: with SMTP id u84-v6mr7786153pfk.90.1537989660668; Wed, 26 Sep 2018 12:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537989660; cv=none; d=google.com; s=arc-20160816; b=U81M4FSln0jc6UslBESF9Jb2uNSyt5G+cQbRYE8fmfb2uUguihubo7cz3YPr+kKFLG SZkqbHlNrjPLLULX4hoikag7lk2mTLt8koXr4l/37NWf78ZHmlyqLjFUKq1aW10AawuA iCaG/oxs6j24g9LV0d5mBzvmT9LCwOYUpqc6Mxq2WI74jtAPjPZ+EVJfrh2UI5TtNNiR uap8ARpf46gYNGJmpk+bPKfWwyoirr0SVlLv3jcznpiVagykgqiXY7uyq+5+BldQjLH5 BtjiDQBWUGuu/2UlW1UFyghYKpompRt3GslOc34q/7USHYUg59rkmMvX58CjAeMcmUXB gQDA== 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; bh=xHM1Og1FdC5928qK1RtWyMdCqpx4t+JGKtojb6kc5Bg=; b=MB3BKdIYFIW6xnLLZFFjdmOWrOc2KbD7U6RqSYMIQQodwWt2eATOANuT9qI12sBnTH mhx4OhHFBvvSiyIPNqvxMg0eh2R0KFWGD+wYLAb1VZ5D9M3ML69+T5aCNMl9bdXzQEcg d9Fs5pxEo6mTJJk/WjnHU9mqTI1UaeoN3pxce8WfGSwKP0/88Xu2L0LNP5aMHP7Mh3MY 7ivZ0XudwS1cr+zQwDYzhmMKGHOTuWpD5rAbjNgZKWQtEeGy0qPgVb+N3ZNW6SKdvbAo 7iKqItA4LbH40OZbOfWK7MH8fshbD9c1L5UPMolCPw6tmO1W4/r3f1SVZnC1a8xFC3H7 R9uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=S1zFwKZj; 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 g20-v6si5874913pgb.239.2018.09.26.12.20.45; Wed, 26 Sep 2018 12:21:00 -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=S1zFwKZj; 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 S1727258AbeI0Bcv (ORCPT + 99 others); Wed, 26 Sep 2018 21:32:51 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38388 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727259AbeI0Bb4 (ORCPT ); Wed, 26 Sep 2018 21:31:56 -0400 Received: by mail-ed1-f65.google.com with SMTP id x8-v6so2899134eds.5 for ; Wed, 26 Sep 2018 12:17:29 -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=xHM1Og1FdC5928qK1RtWyMdCqpx4t+JGKtojb6kc5Bg=; b=S1zFwKZj7gFm8maPoWdA6QGyB+uLOZmYjesuc6h1ievfu8Kuk9egWiy+f++MhMf44L zdLgJ3IxdXSK9TTTRaEfNlIlwL5CWzouBz6ZO/QjFxYiFMV1Qj3Y4cL/CrqKvRrXWgxo 4UA/6lSZz5JTYWiHis39ZXZoBgfH/ZHVM76P2KAAZskQnXg94EuVB/Hm/tAx74R4+qTw oqF1we3qwS91T1eXpishoLESQ6XKipkvZZBgw2ykqa/E3O646Wl10Db5rUkNnVmU5RZ8 Q5JUdz5ZbkwmZir+RcbSaxB1NQzCeb3b7G7EekaBe8GnhF4R6T+nKG4C0bkG7CWlk1Ra VsNg== 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=xHM1Og1FdC5928qK1RtWyMdCqpx4t+JGKtojb6kc5Bg=; b=BPjwWM+N9BovHNeqmm80UPSWcQkRBCZxkLlJsI/wbHlTlkAcqjWL6By18se0tTxskw 48v6gTws+GJ5RweGlBpYFLvtsxKHApwQ1aVb6bFaK8SQ+HBDKE1BwkVaDCrK8rPWO/5J /rEA7EagAGaMQOYa2NPclqBtklQTaKE5PZSJqFmZo55oe7XpxvXCzwP4SRpRVoMINos+ 6gt+50NVVywzmO5haPIiv/AUG02jxNAuFaUpPPItamN9773L8BVDoFYcwMo8oRzKzY0e OyaqngckHtLrDltjer41lHRJXYsehiUi6nz5sOm03cbk4BgrOd++mjvmJ89R78DKf96j pXig== X-Gm-Message-State: ABuFfojcCiORYpOSSUa/eIC3IMusPTqtn/JQCS3nFOW8gVnwl/Kp7JjC w0C+BaDEd8NK3CJ8p+vdmBgtdRMN X-Received: by 2002:a50:c40e:: with SMTP id v14-v6mr12214268edf.232.1537989448992; Wed, 26 Sep 2018 12:17:28 -0700 (PDT) Received: from localhost.localdomain ([109.78.196.57]) by smtp.gmail.com with ESMTPSA id k13-v6sm91417eda.72.2018.09.26.12.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 12:17:28 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, John Whitmore Subject: [PATCH 05/13] staging:rtl8192u: Remove AdvCoding and GreenField - Style Date: Wed, 26 Sep 2018 20:16:56 +0100 Message-Id: <20180926191704.16322-6-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180926191704.16322-1-johnfwhitmore@gmail.com> References: <20180926191704.16322-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The member variables AdvCoding and GreenField are unused in code so have been removed from the structure and associated initialisation function. This is a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 2 -- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h index 64d5359cf7e2..83fb8f34ccbd 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h @@ -39,10 +39,8 @@ enum ht_extension_chan_offset { struct ht_capability_ele { //HT capability info - u8 AdvCoding:1; u8 ChlWidth:1; u8 MimoPwrSave:2; - u8 GreenField:1; u8 ShortGI20Mhz:1; u8 ShortGI40Mhz:1; u8 TxSTBC:1; diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index c73a8058cf87..d1fbe65ed428 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c @@ -493,7 +493,6 @@ 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)) pCapELE->ChlWidth = 0; else @@ -501,7 +500,6 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u // pCapELE->ChlWidth = (pHT->bRegBW40MHz?1:0); pCapELE->MimoPwrSave = pHT->SelfMimoPs; - pCapELE->GreenField = 0; // This feature is not supported now!! pCapELE->ShortGI20Mhz = 1; // We can receive Short GI!! pCapELE->ShortGI40Mhz = 1; // We can receive Short GI!! //DbgPrint("TX HT cap/info ele BW=%d SG20=%d SG40=%d\n\r", -- 2.18.0