From patchwork Wed Jan 18 20:00:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 45458 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2535774wrn; Wed, 18 Jan 2023 12:02:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXuGM57nZfnT6L3ulRurY3XyxtVgKrLKDip4fFc8IOvt1iKlxZVKKI1tRgxTwpp5i6zYBlN1 X-Received: by 2002:a17:90a:4e4c:b0:228:cf57:32c1 with SMTP id t12-20020a17090a4e4c00b00228cf5732c1mr8953585pjl.0.1674072164235; Wed, 18 Jan 2023 12:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674072164; cv=none; d=google.com; s=arc-20160816; b=ZqSfgFrUSk/bP3hy5mE4eQ7+9pEg+F2zRdI/PziOgM62tkNSWGl6yCnJszVSDiCrc7 DqkwXCOQrfQPQRnCFtml9VipJ+jz35He0UGpM1Yd1iDVq/D4Uwf0s48ZxyWZmEgOoE4E B57VjWAf8qw0mHGNLZNHLZYF3Yw0nLbeO6QMjmKBUhkfikCNE8fTkpZmVQPiRj6qjivI TjpOqHNG8I5ZsVSrZgtnG1uZ+eB5uMfgOf2C3UPcRJOl/52o4U9Nt+8eHbfbXUyfXBYm 7UO4wSEVBr/kwNLzFvZLaGwqqlDwIGkeRNJg/P1XoS7Y+GSF+v7qFreRxpG5c7GFziGI OOoA== 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=XKHxjmN02i/BHbdj2UWJHSksRbf2ziy6vT0R/buc9Kw=; b=ACfO8y2n5dvIjcsYuuXeO6559rW4Qqj3YB+1yPDB0aChqJfUPw4qckBb+eRranrLtk WEgu0iey85Sz2cw8q6V256s4rno4SHu7Vae54NqghnsEoauTB53FD2woeMuo4uEnp799 YpxlgwDN9k42xmSD/gx2qVKn0k4PRMIjFlGu7ngSLjaBsbRtlodY78+RAq9em8gTo8Ii 1gi8prQ8IeBld7K3PwDWhmmYWPq7+TeHndG6muxvR4t+bC9hOaDoVKoxko2KOapt0UVZ EB9xcS1u8/KHzcn1zTb1P4D/aIGcD8wfwN+sj0FFI48YYJ7YkWQ12D1AH/HTitzbM5ql cGzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="I5FI9EU/"; 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 z23-20020a17090acb1700b00223f3998ce8si2941102pjt.43.2023.01.18.12.02.31; Wed, 18 Jan 2023 12:02:44 -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="I5FI9EU/"; 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 S229861AbjARUAn (ORCPT + 99 others); Wed, 18 Jan 2023 15:00:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbjARUAY (ORCPT ); Wed, 18 Jan 2023 15:00:24 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888475DC06 for ; Wed, 18 Jan 2023 12:00:21 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id o17-20020a05600c511100b003db021ef437so2416625wms.4 for ; Wed, 18 Jan 2023 12:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=XKHxjmN02i/BHbdj2UWJHSksRbf2ziy6vT0R/buc9Kw=; b=I5FI9EU/z5BZ4/wpjNCc/vMEvZPZI6KnWjr9ycx26XKe1v+Wat2zoohBGrbayqUYRY xAKlpfayi6Fdy//xjIpTh5EgECV1JH1/XcZ5B9AWNI6K7tq68o1NNnuS5QxkmBa78GRO LDkIBMMPMNO0VugcwJUAEHMFvWad5CU03fKGxD83Ink33tfnPVrVAZzTfgHMWNJrwOp1 B5hUZqIJSRh9fbN5fpK6YohtKHepiTXU1QJ28K7sKp8U6qZXLTXyAXpILbteVl5gw+yT G7joulItwvXIsbwlMQuci08Jrl+q+XMXS5ECAG9up8gwfVj+cxQwjma+0DZ3RT02BVPT dH+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=XKHxjmN02i/BHbdj2UWJHSksRbf2ziy6vT0R/buc9Kw=; b=1M6Xjj8dN8wL6fEK4JPYI1FqV95WKP2cHrEMsD6grHub11Pss51kUPPGqYvYezdH9V D9VWXD1o+rMP58cfsNq7tixz0BFrjQTMA/5AofugCUioDVVc9XNr+AtvzaTfI5ZjRuvY NDUBwRKSCdR4/erCOnSg0iKF7wAHPcky9Jhq8PWMNdPq/BKejcqjBzw//xKcPrTwN9rg D0yEoIavO6eS3eENnTTNFlkAs2Fj2PxDUrLSGKvvUdp8ZKAPaciCDvlVOgg/ZNB4B5aE YIAcpWWYH/tAR+lBuGPI16eDMKg1TkpEXkfeGRoEFyt5ajVV1zpbx3QMiPdpT2w60+ZI EFVA== X-Gm-Message-State: AFqh2kqfxDh6eUH+2biZRME8gY/gU0vcxMi41zUdNBo0sD3kLMvLg086 qp/o0aTI2S7yOueYVFy3s7A= X-Received: by 2002:a05:600c:3b29:b0:3da:f7a9:50ca with SMTP id m41-20020a05600c3b2900b003daf7a950camr2017626wms.0.1674072020111; Wed, 18 Jan 2023 12:00:20 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id e1-20020a5d65c1000000b002be15ee1377sm6184451wrw.22.2023.01.18.12.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 12:00:19 -0800 (PST) Date: Wed, 18 Jan 2023 21:00:17 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 9/9] staging: rtl8192e: Remove unused variable DM_Type Message-ID: <380fa2767d1f1cc32a5ad271057683d67ceb1b6f.1674071236.git.philipp.g.hortmann@gmail.com> 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?1755391893487856603?= X-GMAIL-MSGID: =?utf-8?q?1755391893487856603?= DM_Type is initialized and then never evaluated. Remove resulting dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 -- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 -- drivers/staging/rtl8192e/rtl8192e/rtl_dm.h | 2 -- 3 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index 6662558e56fa..11f3f88491b2 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -457,8 +457,6 @@ struct r8192_priv { bool set_rf_pwr_state_in_progress; bool bdisable_nic; - u8 DM_Type; - u8 cck_pwr_enl; u16 tssi_13dBm; u32 pwr_track; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index cb55b6645674..ba92dab682ec 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -203,8 +203,6 @@ void rtl92e_dm_init(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); - priv->DM_Type = DM_Type_ByDriver; - priv->undecorated_smoothed_pwdb = -1; _rtl92e_dm_init_dynamic_tx_power(dev); diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h index 1d4d7d98a859..65d077dfee37 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.h @@ -47,8 +47,6 @@ #define TX_RETRY_COUNT_REG 0x1ac #define RegC38_TH 20 -#define DM_Type_ByDriver 1 - /*--------------------------Define Parameters-------------------------------*/