Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1355288imc; Sun, 17 Mar 2019 11:32:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqqXovTRjSz9enrozihwOhOK7AwXhKmKERsJgce8U5nB8INxI3ALDHTsdEs7/FRJ/xP6uW X-Received: by 2002:a63:d5f:: with SMTP id 31mr13873578pgn.274.1552847536415; Sun, 17 Mar 2019 11:32:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552847536; cv=none; d=google.com; s=arc-20160816; b=MVHA1RyRLFq7zYEbmHc6R8JCsv5BPKtIG1hv3oPWoeDDuHj7Rtjvc3WVX+tLJ3Z+2A ZtSQMFMZjzVi/bJC2ujwJ+c80MgjvXcdbPgzfvbIooBFqP1WcPc0s8msR950Ng/EXxbv xoSpLbD3cjMTwGUf5+j/iRHFsmcxvnZ0aV7u6TJAbQTzExtD83Fw8reIeVxFh61P2laR z1qBykgmJRG1bzuqNMG/TS/c5UhQxupGwkzhPLTGtdVOU7r62Q3momXNkApkOyCD1k/N d8Le8FAjgQiqEsmU/nxfmO0y/URYA++4HTMw8U/sji95eb0FfEWK8HZ1OEsE5RpGPvPK D5eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=BjtpPpig+YxIpgX3Tkx5OQYluC87qGjw+N+NKgdMzDw=; b=WI4sBNQYamgF7cjQWMohdYMIc6tyo7nClVvi+An86hJMUf/I6e13hgZv8jJ1Rf5HA+ QAzjcrCrFNizo50gHWib3Cf5MOPQbzK42gnXZOb5teJQi30TLFNtbQkNKlXzwcJT089s XfI2vhg40VDZQoFFiSm75Ho+iB6BrzxgEH1wTqzTteneX7zTsNxGUuFEIzA15+8YlCwd 5KZIhRFQZvPa/9njlLagtSmeNAk3U5YVacJTC1ufnjfwiqnv6tR3moTENkadG+LkvtI/ 7TvnNSw+lhTPb26chaFyW//M2A3ymJ+TaLgnLzdyJV8emyquqlBWwyf6wEox359Ir5ue ue3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qPkLgEbV; 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 i15si7274172pfa.270.2019.03.17.11.32.01; Sun, 17 Mar 2019 11:32:16 -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=qPkLgEbV; 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 S1727395AbfCQSbV (ORCPT + 99 others); Sun, 17 Mar 2019 14:31:21 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41760 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfCQSbT (ORCPT ); Sun, 17 Mar 2019 14:31:19 -0400 Received: by mail-wr1-f65.google.com with SMTP id p1so14598516wrs.8 for ; Sun, 17 Mar 2019 11:31:18 -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:reply-to:mime-version :content-transfer-encoding; bh=BjtpPpig+YxIpgX3Tkx5OQYluC87qGjw+N+NKgdMzDw=; b=qPkLgEbVQ5PzaV7zT1GVkCmJEXPYAYmcB0ZNkH40lwepPIIX0J2BH4k665pYu1fQGL cMhcvgdp/nTqHkU5ThOBh9YqQzRuZuEfkAZgEAlc0sKxeKhi9RhQjAl1ZW0mPS+lXzmG tIR9SvlJeeZMjzdopr6YUeHnDRze62Zeeo9ZC/DhYSVmjRHqTSFY8LOPaKrjHxb4LMs4 ZI5k9K+Rott7kSqFe+50oCbrKft+rnvjA7ZmbeRqHznGhhbNpFxEEFivBTrY7hUXEivS M91ITwCjRRerLKwMQxdn78oIPSHYjyekUMKeKXitlRI2pTTrwpdfaTwZ0SE08CmFYAOt 6RJg== 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:reply-to :mime-version:content-transfer-encoding; bh=BjtpPpig+YxIpgX3Tkx5OQYluC87qGjw+N+NKgdMzDw=; b=oKdNGD+M/qtmKdSCy4O65PuWE70+nHi+5cFEw8rUvzJKRPV0FXl8/lHumBFdrLwkE0 kiep/GhJmrmJmIVT/cZ89MC7u0awtHS0hRDRMedpYqPWbRZR9aJgfTbot/D+q8Lu3+m4 RhsvAkR7g9kWg6tZaC1rSfl9ISYF0G/0AcpN13mGM2eQ1D3WgYIo2g7P2e9MZUIExW9J Bbmep/QTLTDLPD/gN6rzM8R2uVBAYUN2d+1ACE3wMPvSXQ7jhQuItq6wqVB7qu6S7nEJ 6F67fU1s2AFYXj8UiecaqdnQFcZK1/SrzgHZjqUgNrtG0KKsErOm/1FsFVe4ZN0TDCdx 366Q== X-Gm-Message-State: APjAAAVYQIDw11wlNQEic6Ygm45BY5gJjluhy0ahtTNuCCrot4F48P/r LVR352vODnVQZqkcLed5tHj5I5hu4vM= X-Received: by 2002:adf:edcf:: with SMTP id v15mr2357931wro.20.1552847477765; Sun, 17 Mar 2019 11:31:17 -0700 (PDT) Received: from p200300EEEE2F.fritz.box (p200300C9871AF900B43796A8F69485B6.dip0.t-ipconnect.de. [2003:c9:871a:f900:b437:96a8:f694:85b6]) by smtp.gmail.com with ESMTPSA id q5sm8415358wrn.43.2019.03.17.11.31.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Mar 2019 11:31:17 -0700 (PDT) From: Emanuel Bennici To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Joe Perches , Nathan Chancellor , Quytelda Kahja Subject: [PATCH 01/10] staging: rtl8723bs: Remove Dead Code in `struct mlme_priv` Date: Sun, 17 Mar 2019 19:31:04 +0100 Message-Id: <20190317183115.32393-1-benniciemanuel78@gmail.com> X-Mailer: git-send-email 2.19.1 Reply-To: benniciemanuel78@gmail.com MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some Lines in the struct mlme_priv are Dead due to CONFIG_INTEL_WIDI. This Fix removes the dead code. Signed-off-by: Emanuel Bennici --- drivers/staging/rtl8723bs/include/rtw_mlme.h | 27 -------------------- 1 file changed, 27 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include/rtw_mlme.h index 1ea9ea0e8d2e..ed59f16c26c4 100644 --- a/drivers/staging/rtl8723bs/include/rtw_mlme.h +++ b/drivers/staging/rtl8723bs/include/rtw_mlme.h @@ -454,33 +454,6 @@ struct mlme_priv { _lock bcn_update_lock; u8 update_bcn; -#ifdef CONFIG_INTEL_WIDI - int widi_state; - int listen_state; - _timer listen_timer; - atomic_t rx_probe_rsp; /* 1:receive probe respone from RDS source. */ - u8 *l2sdTaBuffer; - u8 channel_idx; - u8 group_cnt; /* In WiDi 3.5, they specified another scan algo. for WFD/RDS co-existed */ - u8 sa_ext[L2SDTA_SERVICE_VE_LEN]; - - u8 widi_enable; - /** - * For WiDi 4; upper layer would set - * p2p_primary_device_type_category_id - * p2p_primary_device_type_sub_category_id - * p2p_secondary_device_type_category_id - * p2p_secondary_device_type_sub_category_id - */ - u16 p2p_pdt_cid; - u16 p2p_pdt_scid; - u8 num_p2p_sdt; - u16 p2p_sdt_cid[MAX_NUM_P2P_SDT]; - u16 p2p_sdt_scid[MAX_NUM_P2P_SDT]; - u8 p2p_reject_disable; /* When starting NL80211 wpa_supplicant/hostapd, it will call netdev_close */ - /* such that it will cause p2p disabled. Use this flag to reject. */ -#endif /* CONFIG_INTEL_WIDI */ - u8 NumOfBcnInfoChkFail; unsigned long timeBcnInfoChkStart; }; -- 2.19.1