From patchwork Sat Mar 11 21:50:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 68217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp490653wrd; Sat, 11 Mar 2023 15:18:03 -0800 (PST) X-Google-Smtp-Source: AK7set96UuINiJ8YuzIS1FRXyom1iqvc1vT+2uf6LBGdaW0XbDgv8gfENXfiUqs1Gl8ow9tR7rHx X-Received: by 2002:a62:1a54:0:b0:622:ec07:c6bc with SMTP id a81-20020a621a54000000b00622ec07c6bcmr1319645pfa.15.1678576683582; Sat, 11 Mar 2023 15:18:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678576683; cv=none; d=google.com; s=arc-20160816; b=W4D5OIA6c2wwFPALKsmz3puWmI/Yr4Xh0UcsnHd99KyHbg0EOI6PW8UnSB3Fm/HsEY /IylupkAa6jA0iNuRyVM2chcySmdVG0P3LU5vEzhFKh+QNJ+405+qiPec3mSYRPTPseQ yzgV150oVPUcXCoWsRcz5eZRZvdHcPl9WYU7iqAfWrecGMOdb7OEhQZYvmnarvQtiiL9 f7OlWOO0x8u1Twjs9gCAEJ+cQrtVSEYS2AJcPxlh3DerG0Qag+ZjUKLPMVidrhZUo8aI 9cd3twNarQACtM8jqd4Yb3lDCleUxDuIu43o8xiETZu6GBrOZNrDSnGmY3HawYGMtaEg 4QVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=YZRztXr+yi1+VTQciICFP+x1t1LeLTBQI5V0a9mBDUU=; b=DoE3XpxFcSXOojBSTeSubEHCRRBfh0ccMWpkrFbg7kMAjrvm67PUn78hLK6D7CtOXF duEGaEPUSTl3hvKBlmRdu1JQ1UjO0NbNChX0G1gF09VwLIaqIvEGRafz32qsUplbOyKh xNd9Wuc7g8y5Knd8XE316CTXO21p3/VNZJ5/9FH6doUhMtLVGuZQO7azRmc1vFiZMsuI nZPDEs/wYfRYGQIEuDuIZg0wROOa+5pLW0Ck+0/Aw5ZfgLmb+Pl9bZ8VgLag+3Yk92k7 JeLv13Dnk1IPQNkriyPvzdCJ9RWnJvF34/3BTALkv3SLZA918bV2bxw4kBt7yhqUBN4S txNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jrsv3JVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a63fe52000000b0050373058436si2899147pgj.647.2023.03.11.15.17.48; Sat, 11 Mar 2023 15:18:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jrsv3JVC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229983AbjCKVvQ (ORCPT + 99 others); Sat, 11 Mar 2023 16:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjCKVvN (ORCPT ); Sat, 11 Mar 2023 16:51:13 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8504580CD for ; Sat, 11 Mar 2023 13:50:59 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r15so7262451edq.11 for ; Sat, 11 Mar 2023 13:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678571458; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YZRztXr+yi1+VTQciICFP+x1t1LeLTBQI5V0a9mBDUU=; b=jrsv3JVCjkddk3WtVccMKFPD0rBNEkDOReh9EgvbeGHtlx4u4dBVST9TGLsYnSrik1 fCGRem74PcYWnMSFww/ZBYYkad9whVFjreKmBsKE3WvetcmhfYkkJOMHC3eBVkd3O2/e C/QWu25lRH9Llr0/i8kkw9F1f74a5VveDwjZItIUksclQQNdeUhV4b/wfOZUb6Y6tIgT Ii+SL6IDbR2NS2TuxJmjZsfVhQpFn+UMrBk50894jQRsuplBSocTwjAVWcGTFTBTveVI eHmMGOI9H4LGUV2PxLU2yMFpWhCKCmAJfN8rrOvZ4rKMFZtoZdM8r8i4shwg9Z9k4E86 YTTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678571458; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YZRztXr+yi1+VTQciICFP+x1t1LeLTBQI5V0a9mBDUU=; b=o7z6BmKkyzvjGDbIdGjWC0mq006g25eV3/CRy52sRgt7GYhSbH1jPsUxO5GyD7SiDo yMu+094jBZJ05F6pfdR7D0nHoxjT9mv71bcwBJ5UlJOLE1a2UDmU5NSZGZTFkllG1MID pyNZzNJRDGBFnK5QMTzYR4KmI2c6c40Jn4SXMlraPuwSjR8tKZrhrNSQ0ig4n1O0vvby hMs7jV8e83nR8lV7AcizpARg0d9v/A44vrLNaaUI9Sy/FW6CYigmf+IS5FwP6b+x93GU deXDfi2wcU2OFEp3ujBwm5mR3epleIPuo25LnKojRdRBGxNlqf6sXdsiAlRXFzdjBKAY /8oQ== X-Gm-Message-State: AO0yUKV3XjgSXk4buigm14FlV9UAjMmUtRh6gra43RqC7nc+MvLxwRgq HlPh+8TH4azPGC2Q1ZSucg0= X-Received: by 2002:a17:906:d4:b0:878:5fa4:7443 with SMTP id 20-20020a17090600d400b008785fa47443mr5803546eji.3.1678571458319; Sat, 11 Mar 2023 13:50:58 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id nb17-20020a1709071c9100b00925867d821fsm125242ejc.120.2023.03.11.13.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 13:50:57 -0800 (PST) Date: Sat, 11 Mar 2023 22:50:56 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 03/12] staging: rtl8192e: Remove unused variable rfintfi Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760115224616708297?= X-GMAIL-MSGID: =?utf-8?q?1760115224616708297?= Remove unused variable rfintfi because it is just once set and not used. Remove unused constants as well. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8190P_def.h | 1 - drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 5 ----- drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h | 2 -- 3 files changed, 8 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h index ac192254a4bb..adedcea5824e 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8190P_def.h @@ -103,7 +103,6 @@ enum rf_optype { struct bb_reg_definition { u32 rfintfs; - u32 rfintfi; u32 rfintfo; u32 rfintfe; u32 rf3wireOffset; diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index 94b23cb53c36..19fdf56e5e91 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -359,11 +359,6 @@ static void _rtl92e_init_bb_rf_reg_def(struct net_device *dev) priv->phy_reg_def[RF90_PATH_A].rfintfs = rFPGA0_XAB_RFInterfaceSW; priv->phy_reg_def[RF90_PATH_B].rfintfs = rFPGA0_XAB_RFInterfaceSW; - priv->phy_reg_def[RF90_PATH_A].rfintfi = rFPGA0_XAB_RFInterfaceRB; - priv->phy_reg_def[RF90_PATH_B].rfintfi = rFPGA0_XAB_RFInterfaceRB; - priv->phy_reg_def[RF90_PATH_C].rfintfi = rFPGA0_XCD_RFInterfaceRB; - priv->phy_reg_def[RF90_PATH_D].rfintfi = rFPGA0_XCD_RFInterfaceRB; - priv->phy_reg_def[RF90_PATH_A].rfintfo = rFPGA0_XA_RFInterfaceOE; priv->phy_reg_def[RF90_PATH_B].rfintfo = rFPGA0_XB_RFInterfaceOE; priv->phy_reg_def[RF90_PATH_C].rfintfo = rFPGA0_XC_RFInterfaceOE; diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h b/drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h index 616a4b62d4b9..5a47b232945f 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h @@ -80,8 +80,6 @@ #define rFPGA0_XC_LSSIReadBack 0x8a8 #define rFPGA0_XD_LSSIReadBack 0x8ac #define rFPGA0_PSDReport 0x8b4 -#define rFPGA0_XAB_RFInterfaceRB 0x8e0 -#define rFPGA0_XCD_RFInterfaceRB 0x8e4 /* Page 9 - RF mode & OFDM TxSC */ #define rFPGA1_RFMOD 0x900