Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751465AbdDBLkF (ORCPT ); Sun, 2 Apr 2017 07:40:05 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36579 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbdDBLkD (ORCPT ); Sun, 2 Apr 2017 07:40:03 -0400 From: Ivan Safonov To: Greg Kroah-Hartman Cc: Luca Ceresoli , Georgiana Rodica Chelu , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Ivan Safonov Subject: [PATCH 5/6] staging:r8188eu: remove software_encrypt member of registry_priv struct Date: Sun, 2 Apr 2017 17:35:39 +0300 Message-Id: <20170402143540.4954-5-insafonov@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170402143540.4954-1-insafonov@gmail.com> References: <20170402143540.4954-1-insafonov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1685 Lines: 44 Value of this variable does not changed after initialization. Replace software_encrypt with its default value. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/drv_types.h | 1 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/drv_types.h b/drivers/staging/rtl8188eu/include/drv_types.h index 8bcb170..c3517c0 100644 --- a/drivers/staging/rtl8188eu/include/drv_types.h +++ b/drivers/staging/rtl8188eu/include/drv_types.h @@ -65,7 +65,6 @@ struct registry_priv { u8 ips_mode; u8 smart_ps; u8 mp_mode; - u8 software_encrypt; u8 acm_method; /* UAPSD */ u8 wmm_enable; diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index ccae39f..fecbedd 100644 --- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c +++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c @@ -163,7 +163,6 @@ static void loadparam(struct adapter *padapter, struct net_device *pnetdev) registry_par->power_mgnt = (u8)rtw_power_mgnt; registry_par->ips_mode = (u8)rtw_ips_mode; registry_par->mp_mode = 0; - registry_par->software_encrypt = 0; registry_par->acm_method = (u8)rtw_acm_method; /* UAPSD */ @@ -389,7 +388,7 @@ static u8 rtw_init_default_value(struct adapter *padapter) /* security_priv */ psecuritypriv->binstallGrpkey = _FAIL; - psecuritypriv->sw_encrypt = pregistrypriv->software_encrypt; + psecuritypriv->sw_encrypt = 0; psecuritypriv->dot11AuthAlgrthm = dot11AuthAlgrthm_Open; psecuritypriv->dot11PrivacyAlgrthm = _NO_PRIVACY_; psecuritypriv->dot11PrivacyKeyIndex = 0; -- 2.10.2