Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1369426ybi; Wed, 19 Jun 2019 19:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjTaF6WbY5us5xfHaiKzggCgAjW+2dlGiOwHby2yEC8DbPKP4YAVWYCMmkdW4hOCum1XpA X-Received: by 2002:a62:5105:: with SMTP id f5mr128419352pfb.127.1560997678141; Wed, 19 Jun 2019 19:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560997678; cv=none; d=google.com; s=arc-20160816; b=UZN7tplYulyMCeI66XXPA6WcgbNtdXiaDkxqovxCo3mm68mDtnydKCHVncmGdkCbeQ 59NB2I6seGe7eI8bLjv/1AyNbBLxLMyMhFg42zQtKTrMDkSxdz6mcn5XezNy0IQRz3QF D/DLzxX9FoJJalFnfSMB/d1DbHEo73YVzVfLdB7RkfaTpXrUkojliqUUifjt5SwlRjId gGG7NRIrUU01mGEdtasPhup27/pHLW1nhfYC53oGk5rgPPSHgPwwbT9+X0H9Je0PE3ni ryxVbn8krWeP4fRykPsK8OZvqku3/6uix9IIpTZ/l636SNaRpgcMhmSRHpm0VKbztlsL hKpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=rZe0jF1fnIyGnpK652ETkNOA+XkaYNF8CGCQ/FTB5oc=; b=fFzBUeMoaTte/FMikR1o1HC68vhpJUQL0oQDMeWK1Um4asvGhyN9sBIuYzmKv/WTAW C6tZPXBHwX3eKcLE94545z/v32iXQ4hgRR7qb9VCnDYB6QSla7Zii9//09HTcpEjoG8o IOYsB1w7XrojCd5rQMgzdrX2lom3mORkvl0SRsgjuEKq+eUu1gj2S2nwtw6vjDocpE// Ohhggm+PFWLHFPNZ3QHFkiDpd58ueEeX+G+jQAFE1tJ3XFP0VYPFZpB4f4dfFJbCjXC6 aQvr6m6oNK4u/y3k2d515yOgqr2rHwUwLrUIq8GiRjOiVRQDvO2nUdeQjScqcOI45wXX 6rVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O7xnBGcE; 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 63si18327217pfg.192.2019.06.19.19.27.42; Wed, 19 Jun 2019 19:27:58 -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=O7xnBGcE; 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 S1731096AbfFTC1d (ORCPT + 99 others); Wed, 19 Jun 2019 22:27:33 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:47076 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbfFTC1d (ORCPT ); Wed, 19 Jun 2019 22:27:33 -0400 Received: by mail-pl1-f195.google.com with SMTP id e5so701852pls.13 for ; Wed, 19 Jun 2019 19:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=rZe0jF1fnIyGnpK652ETkNOA+XkaYNF8CGCQ/FTB5oc=; b=O7xnBGcEjc+6HH9FPNRtdKx7U6xpjrgMFnsvTc1id4kCZt6Tdakw3afMiCRoGQ8T76 HwaIAqNap8G42JmxPCjEWZMkl5dI9TLfvF7oq/gMZpYbEUZ70h0OvOREWZ2skn3uEivp BgqGQUhlmKRqeP6dUMPwJXsIonQYHXK/HW+GkGTqL2ZookJlYmxeWxrjzMBdWUVoLdxa WtwQBnSWqIWqPa0eIx12RLE2ANaxvFiAy0Gc7We5ixKqnbppoaagD0GUjmh8OB/37Gb+ m3bm8B6epxzr+EGyPuVn3FUjNI/1MU6usEcP8PzVOQQSAw2+4Od+kP2AwgV3dIN4QvQa FS8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=rZe0jF1fnIyGnpK652ETkNOA+XkaYNF8CGCQ/FTB5oc=; b=DpdjWqM4vlCg6lcQ5wawoZxrQhIm2iGWj18QR64mXEAGVGER2+XZUH7FerQ5+HuPn/ ZggCJpVVnDiPuD2FSMAj6SBc7hYduUfhSaqCj75ydkDRQnrkiI6Hq+eZYL5zgsurqvQ3 amlobi2jdw2JP7GH7ce/Ugr4svlWNMYE4Z4moKcALacayoWI9gXKXwHNGkwzOSKJ4f1f UsI0egaryoC5xShMvv+iIjTOLPluUdYomf7fkurZ3yI9mhVa3a4q5GLtN2T/NjtZU0xc RHYk6VHncFToXo6LDJYA+tm0T6IEgSt7agucu6CTPgbtYdt3NGFU4AclH8vaRiMQm6ws MzFg== X-Gm-Message-State: APjAAAV7onhLf/317phDLlEMC1k4Q1poiG794JW/5akVttpYkwB2zBPr grvu+NYkxLoSXad9+esndI4= X-Received: by 2002:a17:902:e58b:: with SMTP id cl11mr100882004plb.24.1560997653013; Wed, 19 Jun 2019 19:27:33 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id j23sm19200394pff.90.2019.06.19.19.27.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 19:27:31 -0700 (PDT) Date: Thu, 20 Jun 2019 07:57:26 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Nishka Dasgupta , Himadri Pandya , Hardik Singh Rathore , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: hal: hal_btcoex: Remove variables pHalData and pU1Tmp Message-ID: <20190620022726.GA19556@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove pHalData variable as it is set but unused in function. Remove pU1Tmp and replace this with pu8 Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index fd0be52..e673319 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -560,18 +560,14 @@ static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf) { PBTC_COEXIST pBtCoexist; struct adapter *padapter; - struct hal_com_data *pHalData; u8 *pu8; - u8 *pU1Tmp; u32 *pU4Tmp; u8 ret; pBtCoexist = (PBTC_COEXIST)pBtcContext; padapter = pBtCoexist->Adapter; - pHalData = GET_HAL_DATA(padapter); pu8 = pInBuf; - pU1Tmp = pInBuf; pU4Tmp = pInBuf; ret = true; @@ -614,11 +610,11 @@ static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf) /* set some u8 type variables. */ case BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON: - pBtCoexist->btInfo.rssiAdjustForAgcTableOn = *pU1Tmp; + pBtCoexist->btInfo.rssiAdjustForAgcTableOn = *pu8; break; case BTC_SET_U1_AGG_BUF_SIZE: - pBtCoexist->btInfo.aggBufSize = *pU1Tmp; + pBtCoexist->btInfo.aggBufSize = *pu8; break; /* the following are some action which will be triggered */ @@ -633,15 +629,15 @@ static u8 halbtcoutsrc_Set(void *pBtcContext, u8 setType, void *pInBuf) /* 1Ant =========== */ /* set some u8 type variables. */ case BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE: - pBtCoexist->btInfo.rssiAdjustFor1AntCoexType = *pU1Tmp; + pBtCoexist->btInfo.rssiAdjustFor1AntCoexType = *pu8; break; case BTC_SET_U1_LPS_VAL: - pBtCoexist->btInfo.lpsVal = *pU1Tmp; + pBtCoexist->btInfo.lpsVal = *pu8; break; case BTC_SET_U1_RPWM_VAL: - pBtCoexist->btInfo.rpwmVal = *pU1Tmp; + pBtCoexist->btInfo.rpwmVal = *pu8; break; /* the following are some action which will be triggered */ -- 2.7.4