Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp760292pxf; Wed, 7 Apr 2021 10:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIznLnrTnJwhcg4qQcwITRa4lIbQ9ZGVLZS++4FpHhbJkP0oEwELAlLe2VXe6UdM4dB3Np X-Received: by 2002:a6b:c997:: with SMTP id z145mr3395901iof.36.1617817816126; Wed, 07 Apr 2021 10:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617817816; cv=none; d=google.com; s=arc-20160816; b=ZFZFJKzKcoblhNJNiOk/c32/N14WDNoOB5dCwOPbBwUbzSm5+qlUFGLHujRMaJK1pI kvAwZ78D8wMcilF9daw1U/MWqg3XoEAINdb2seV74RmZ+EULTuowY46sKc81PZLAC+Jk RJc6Kr3nBySnk2aGgT2zuVMRzPsy6m1ZGCXcGuGGeptrvsXcivKIWPVbBd+lUnAfvDdF enuy+nG1CT7kwbAu80KNq0D8vInUFCBd/qEDs5E2pLV9z/xlaE+D/BLqnNvi9fS5xe+f PxKuj6lIxlrsbEMia2F7U3zuOzDXWCVQE1/60zHfQNTldpbGiTPKBAEHx2N8o7lTmaXz gFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yxQ1vwLqTAqaPW7vg3YnuUXVDalR0yDtA6geMaxMdYI=; b=gMlAijbIVDkvQdJ+c0XaOXy3lTLEq2VGoZ2/LXu1akHoDawU9CVrlWY3zWTdV0e+0t CBwfZJmsbPij8cBVwbSEXzKWByF5Te5wzMNiiUBC7ILXyd+pbML9ElZMOLxJPvtC/IbK +hSt6lrKWzNNDmSzs7se8AATkWYRCVYJANsJqDCT97UIZKZGVeZ7xKdw8LN52wrmVRme nZ3WgAghE6tfg+qFPWsT00nWg3AA3trXmDK7QYF8ENatmNV56joAQN53nP7O5FvP8RPr CnO0+2skm/u34IIr6nsFi+bTmnTnmyAcjSeqzEj4MXOMe1Kdj0HE9qGyKKaX+iNSguHW mhPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t8si891469jap.49.2021.04.07.10.50.03; Wed, 07 Apr 2021 10:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233149AbhDGDxA (ORCPT + 99 others); Tue, 6 Apr 2021 23:53:00 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:38514 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbhDGDxA (ORCPT ); Tue, 6 Apr 2021 23:53:00 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUklzHF_1617767559; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUklzHF_1617767559) by smtp.aliyun-inc.com(127.0.0.1); Wed, 07 Apr 2021 11:52:50 +0800 From: Jiapeng Chong To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] staging: rtl8192e: rtl8192E_dev: remove unused variable Date: Wed, 7 Apr 2021 11:52:38 +0800 Message-Id: <1617767558-114050-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:693:15: warning: variable ‘tmpRegC’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index ff843d7..8dbb31f 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -690,7 +690,7 @@ bool rtl92e_start_adapter(struct net_device *dev) u8 tmpvalue; u8 ICVersion, SwitchingRegulatorOutput; bool bfirmwareok = true; - u32 tmpRegA, tmpRegC, TempCCk; + u32 tmpRegA, TempCCk; int i = 0; u32 retry_times = 0; @@ -889,8 +889,8 @@ bool rtl92e_start_adapter(struct net_device *dev) if (priv->IC_Cut >= IC_VersionCut_D) { tmpRegA = rtl92e_get_bb_reg(dev, rOFDM0_XATxIQImbalance, bMaskDWord); - tmpRegC = rtl92e_get_bb_reg(dev, rOFDM0_XCTxIQImbalance, - bMaskDWord); + rtl92e_get_bb_reg(dev, rOFDM0_XCTxIQImbalance, bMaskDWord); + for (i = 0; i < TxBBGainTableLength; i++) { if (tmpRegA == dm_tx_bb_gain[i]) { priv->rfa_txpowertrackingindex = (u8)i; -- 1.8.3.1