Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10692421ybi; Thu, 25 Jul 2019 03:45:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwlXP4b4ZJhppzorRRRv0Vf3eOB60EcqFYtv4hjUd1d60FLltVZa0ninaUQvNGLXVZP338 X-Received: by 2002:a17:902:296a:: with SMTP id g97mr88651378plb.115.1564051517042; Thu, 25 Jul 2019 03:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564051517; cv=none; d=google.com; s=arc-20160816; b=jH90w2lSRsDGIsUODD3xV9mi0RNCJ3YM88k/RbdmB7DiS71y1RRxqCHHQdew9uRVif dHxopNKpc9H7oASu6hLw+K93hpmlKV4utEkPRxZ+OcN/xOhcUZulNu/bPkT+uiU7B6TW 9FABQtCBXaQCcrckXft1dLVPX0v//rNGA3bpOlxJsGu+X5zehMJ895VMuaLCR5xdPtPE mgvpCBBztq+jWmSnFNptHdxJ4QrcI/tNi9AYABawY4MS3snSPPccI1J6CiZ/j06p4y35 f/+M6VlKs66tCAHDZV3LEB9RqrFQ8bZF0t7fbhwpouWToVeLFZiqJkt9fL8C/0EyiaZ1 ksVw== 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=gWOX4S2cmsNDQd7ZgPQfa5ixwhND2vZIS2QHH9OWdfg=; b=fsD+G2moMS6XlXRU2bpHhIOxRd2Hln/Bm4bgHu+qkUKH9TkkIUIN2i8PExktkrQpEf galMYHyGPkqIf6iawsuFAt15hFYWHQ88kHdnTvSA029k3VTIqKTGhZbQLpFOca9KVIwO Hu0uopXYet2Uy4oP5avvCWQ3FfAf1cs6uS5TBhnPJF4q8KwMujGr4dcVGBNl8Qx7Csy3 TeOQ2joSs17JwhrfB1i5eUIKB95+sDprQjfgzclSt8c3bwWKjfs3nXwkhbeBSWdpcmWz E/KNSqmWP9/IQLauwaxiDT7Sf5Ur6WfDTujPqzvk4VTtVFMvrdBq8vQGR1k2arNOEF5G Ld5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l2jb3A1M; 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 j192si19273780pge.393.2019.07.25.03.44.58; Thu, 25 Jul 2019 03:45:17 -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=l2jb3A1M; 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 S2388791AbfGYDXd (ORCPT + 99 others); Wed, 24 Jul 2019 23:23:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34878 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387761AbfGYDXc (ORCPT ); Wed, 24 Jul 2019 23:23:32 -0400 Received: by mail-pf1-f195.google.com with SMTP id u14so21977104pfn.2 for ; Wed, 24 Jul 2019 20:23:32 -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=gWOX4S2cmsNDQd7ZgPQfa5ixwhND2vZIS2QHH9OWdfg=; b=l2jb3A1MO1XyzVUoqM5G7/WDQ1HMx8OR4zyPKsqa+mrfNPiB4YjbcjML1BJdqxUUhz 70cmpS4K4Pal11bPy6q1Ba/0Edh4jQM5HQROUn8rqIqeh7WWDq5ceNoQ5ECzWTwAp+kZ is0cPH2PfG15KvabWvheJ5IWcqJj8Vn6Sw0OlwpHl+SZaH8fSdTzQz92ycuO56rJB+95 6EMrZqG8H9VBigaybM2nrUVilIHZ11rt+B4y1zgKOKHrekF56bIpIYvqtad9SvlyKWZb OwJObY8xLdSY7T6mEU19ln6YH8BxuGY1U0wDMOYheHLt3zijqDUX0KvLfWeXQL7ahQ7/ sosA== 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=gWOX4S2cmsNDQd7ZgPQfa5ixwhND2vZIS2QHH9OWdfg=; b=AxH4mQ5quoOz6c7NYIugcEFtQK2iKcNl50WSO8dhYC4vEXCAKF9oDp2nh01Ax1WEM8 1FqWLBPyUC65h3lSgZPzyz71qNXJzu+YmwigAfPeug0tqc2XUTZi7DH2gaXx//umJngn KXax80Pd6vzf2BWfyV9tx3PW5CQ/0O5ldm47qceGUu6O4tbhLqqx2B891TGGZ5nfdVxf JU5eLx95QAaxWjRIESKlQrC3AJLh1u9OQK3u5HmgS+P7stYcDYdAO8Cx4D0kmDZJZhQb S8NyN62y3m/ZeRa3/FgEbCErU1shrq1IQJJGtBMZF4T53WjVPC7/llLzXoIjUgD0wjlZ iQnA== X-Gm-Message-State: APjAAAU/DQO7s64Drh+RwvuaeHkN2fU8ecj52RDxvGKALH8XZa5dcWGG OwiJRiTKLI2MMOwPzcLbqxc= X-Received: by 2002:a63:6947:: with SMTP id e68mr48279889pgc.60.1564025012080; Wed, 24 Jul 2019 20:23:32 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id 143sm70254341pgc.6.2019.07.24.20.23.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 20:23:31 -0700 (PDT) Date: Thu, 25 Jul 2019 08:53:25 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Nishka Dasgupta , Himadri Pandya , Shobhit Kukreti , Colin Ian King , Hardik Singh Rathore , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: hal: Remove unneeded variable pU1Tmp Message-ID: <20190725032325.GA16473@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 Both pu8 and pU1Tmp are of same data type u8. So replace pU1Tmp with u8. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index 5257287..8987b5f 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -389,7 +389,6 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf) u8 *pu8; s32 *pS4Tmp; u32 *pU4Tmp; - u8 *pU1Tmp; u8 ret; @@ -403,7 +402,6 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf) pu8 = pOutBuf; pS4Tmp = pOutBuf; pU4Tmp = pOutBuf; - pU1Tmp = pOutBuf; ret = true; switch (getType) { @@ -516,32 +514,32 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf) break; case BTC_GET_U1_WIFI_DOT11_CHNL: - *pU1Tmp = padapter->mlmeextpriv.cur_channel; + *pu8 = padapter->mlmeextpriv.cur_channel; break; case BTC_GET_U1_WIFI_CENTRAL_CHNL: - *pU1Tmp = pHalData->CurrentChannel; + *pu8 = pHalData->CurrentChannel; break; case BTC_GET_U1_WIFI_HS_CHNL: - *pU1Tmp = 0; + *pu8 = 0; ret = false; break; case BTC_GET_U1_MAC_PHY_MODE: - *pU1Tmp = BTC_SMSP; + *pu8 = BTC_SMSP; /* *pU1Tmp = BTC_DMSP; */ /* *pU1Tmp = BTC_DMDP; */ /* *pU1Tmp = BTC_MP_UNKNOWN; */ break; case BTC_GET_U1_AP_NUM: - *pU1Tmp = halbtcoutsrc_GetWifiScanAPNum(padapter); + *pu8 = halbtcoutsrc_GetWifiScanAPNum(padapter); break; /* 1Ant =========== */ case BTC_GET_U1_LPS_MODE: - *pU1Tmp = padapter->dvobj->pwrctl_priv.pwr_mode; + *pu8 = padapter->dvobj->pwrctl_priv.pwr_mode; break; default: -- 2.7.4