Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751683AbdDBLkc (ORCPT ); Sun, 2 Apr 2017 07:40:32 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36582 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbdDBLkF (ORCPT ); Sun, 2 Apr 2017 07:40:05 -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 1/6] staging:r8188eu: replace rtw_software_decrypt with its value Date: Sun, 2 Apr 2017 17:35:35 +0300 Message-Id: <20170402143540.4954-1-insafonov@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 31 rtw_software_decrypt used only once and does not changed. Replace it with 0. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index 5f6a245..f1c8bbc 100644 --- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c +++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c @@ -50,7 +50,6 @@ MODULE_PARM_DESC(rtw_ips_mode, "The default IPS mode"); static int rtw_debug = 1; static int rtw_software_encrypt; -static int rtw_software_decrypt; static int rtw_acm_method;/* 0:By SW 1:By HW. */ @@ -167,7 +166,7 @@ static void loadparam(struct adapter *padapter, struct net_device *pnetdev) registry_par->ips_mode = (u8)rtw_ips_mode; registry_par->mp_mode = 0; registry_par->software_encrypt = (u8)rtw_software_encrypt; - registry_par->software_decrypt = (u8)rtw_software_decrypt; + registry_par->software_decrypt = 0; registry_par->acm_method = (u8)rtw_acm_method; /* UAPSD */ -- 2.10.2