From patchwork Wed Apr 5 21:48:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 79962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp611173vqo; Wed, 5 Apr 2023 14:53:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aEY76V4VNl0nraeeGWrps7aSm6M73V3A++jqX3j77nEJC5ud4EZRJoUJKZDUiD0cNTMi5/ X-Received: by 2002:a17:906:1988:b0:8b1:29ed:e206 with SMTP id g8-20020a170906198800b008b129ede206mr3791245ejd.28.1680731602022; Wed, 05 Apr 2023 14:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680731602; cv=none; d=google.com; s=arc-20160816; b=kLnYTRh8m1Ix9fRTiWFRLcIReKSEVOu98n3KvKwt3QnWqTdJbhaflKWbGeTqpdNDp8 PG/GAMtDzGtx9X+/Te/p0Ia+AUhUPcojEf2c229NEwnnUhLY5u/CbRKhIkFjhM530r+i fFy6yl+ez1sjiA0WxLiaP75Qhti7x+uOx7DlozbjTu7aS8rlg2NK0UoX0DIuHosxXCE0 g543Ah7+LbNfXZf24WjHQVrUP3stegBx79e0vdbYvdjiaj8AykUm4j6LSMBackrJ+E/s R4xdcbtxk4UHFYxLmnau06dZt9oncyLxI9FFG9M2OCJY4+IxnGKozQ29m6feNvCfId15 7g6Q== 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=ZOZBenPjCQElNBV9GC58Q3qKs5/Fllkis9cJIxphAWQ=; b=af/8/vIDryOClROzsmvHmvyAnnKS/WFtAaz7QA6CgAw9wb+xQRhVRERFk/tbrwnz4B U1gi0ldFjqsblXP/ol6rzuwZBoYrxVD/YFxCDu5QakW6OUc3O1UqYOtG/jlrPW18ng3Q LnFD3Dw8f9RqwMcbqBtDHEBb5D58w6/YOjLJoXU1YMbipmjaNB+0W3MZR3+JoHbRrv0K Fj1NC3iXtCZ0+70/LTXNorUfbAjX6npPNEltW4ZEyOtUk1YuRGOrwMUlvA4V5r2SACaF lDyVMj9pzNwKZgASOyT6LTcHy1vQte1BI9j7SBkxt+UwxeN5Tpn0z/kxLZntUVhmk7uM wDOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mNUK5sOt; 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 e5-20020a170906248500b009276a433846si3818850ejb.652.2023.04.05.14.52.58; Wed, 05 Apr 2023 14:53:21 -0700 (PDT) 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=mNUK5sOt; 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 S230237AbjDEVsJ (ORCPT + 99 others); Wed, 5 Apr 2023 17:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231245AbjDEVsH (ORCPT ); Wed, 5 Apr 2023 17:48:07 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E395A4C03 for ; Wed, 5 Apr 2023 14:48:05 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-94706a972f3so6872566b.0 for ; Wed, 05 Apr 2023 14:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680731284; x=1683323284; 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=ZOZBenPjCQElNBV9GC58Q3qKs5/Fllkis9cJIxphAWQ=; b=mNUK5sOtttLZfKBNZM2tGZvdtvWYZCi/DnyFtaxmPQB43zb8poHNgldRs20Ns2x/+8 NcYR46166zF7r6ZSTFAqqmVQs5Fi+xyT+IdIIr4lL48NwmuQtidNzScSnXcu0DpuoLFt FAO5lVFsiTnL+6uR4BtwJAk0AbIiI3XDTziLIHLsI22xYhx1op0T8ccXE1fsIw/t1SJg 8xbwJ8gUZDm5k1SgPLCDZCgyos0ymEWNRduotWj6V9WWMlHWPwLHZEKqeB9NV7lNt0jY 9zJjTKxUiKezYFAWKabvEmAHnUrpJlxBseIu90twrrVblVQ2X7T3at9syByq6K01CJoI 7E/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680731284; x=1683323284; 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=ZOZBenPjCQElNBV9GC58Q3qKs5/Fllkis9cJIxphAWQ=; b=CsoDPaQJGdFnOFhyu7r9A0+4WsL+3fKgyd0wj9eirbjb7nL4Z2A+62qXIM9Qh6wVAb wOOb27LTFNs8DCefLwpJbwG42XuriW08DDyk9DPIHaC3jpSliq3fU6Ybw8y+QRYLqqvH C84XLxnI7pfNskD9bKHWf5IEHDofgwKxCalReHJfVx6Aaak4ox1vMEXsv69ZHnQhT44o 09Ft/XssXvuVrlT65qdmooN49GeVV2BFLPJH2ie75fQj6SD37QLN0tyJM9GbZXzvJYIj yODG48WEbIc9STGJewNy+kcN21kZ1deb4joP5vqcsKs/keO8gZIAzd0CippZOjyqFfL5 l/pA== X-Gm-Message-State: AAQBX9dt0aXYp5Hwd8Jdvg478rnI5CMQImIlJCqjripRVwyFtU86Zy35 /7dxqudntH9CxoE6o7n+I3T1e7WGxaQ= X-Received: by 2002:a05:6402:1e8e:b0:502:1f7b:f069 with SMTP id f14-20020a0564021e8e00b005021f7bf069mr3427551edf.2.1680731284278; Wed, 05 Apr 2023 14:48:04 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id j26-20020a50d01a000000b004c4eed3fe20sm7853521edf.5.2023.04.05.14.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 14:48:03 -0700 (PDT) Date: Wed, 5 Apr 2023 23:48:01 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] staging: rtl8192e: Remove macro IS_HARDWARE_TYPE_8192SE Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762374820352001757?= X-GMAIL-MSGID: =?utf-8?q?1762374820352001757?= Remove unused macro IS_HARDWARE_TYPE_8192SE as it is used only in code areas that are not executed when 8192SE hardware is found. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 3 --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index 2b2d8af4cf6e..b0aa76574738 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -52,9 +52,6 @@ #define DRV_AUTHOR "" #define DRV_VERSION "0014.0401.2010" -#define IS_HARDWARE_TYPE_8192SE(_priv) \ - (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192SE) - #define TOTAL_CAM_ENTRY 32 #define CAM_CONTENT_COUNT 8 diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index cde41111012a..50486f2a6f3a 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -214,8 +214,6 @@ void rtl92e_dm_init(struct net_device *dev) _rtl92e_dm_init_fsync(dev); _rtl92e_dm_init_rx_path_selection(dev); _rtl92e_dm_init_cts_to_self(dev); - if (IS_HARDWARE_TYPE_8192SE(dev)) - _rtl92e_dm_init_wa_broadcom_iot(dev); INIT_DELAYED_WORK(&priv->gpio_change_rf_wq, (void *)_rtl92e_dm_check_rf_ctrl_gpio); } @@ -816,10 +814,7 @@ static void _rtl92e_dm_check_tx_power_tracking_thermal(struct net_device *dev) static u8 TM_Trigger; u8 TxPowerCheckCnt = 0; - if (IS_HARDWARE_TYPE_8192SE(dev)) - TxPowerCheckCnt = 5; - else - TxPowerCheckCnt = 2; + TxPowerCheckCnt = 2; if (!priv->btxpower_tracking) return; From patchwork Wed Apr 5 21:48:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 79961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp611094vqo; Wed, 5 Apr 2023 14:53:08 -0700 (PDT) X-Google-Smtp-Source: AKy350YrgWhqcQmTV1DvrhcR/sfbrwzOj4ezFnSzgaGPmwZGSq7s5aropVJqG2Y/Sh9DOJBKh5O1 X-Received: by 2002:a05:6a20:9283:b0:db:d9b6:7fba with SMTP id q3-20020a056a20928300b000dbd9b67fbamr476962pzg.47.1680731588376; Wed, 05 Apr 2023 14:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680731588; cv=none; d=google.com; s=arc-20160816; b=Y5to/tfqGko0IVC7XQMe9UZ5I2jXuGgH0OW9PGSZnqqzBNj1EJcWqU6GoyI7WIPB2O Ccr5aHkyNnt1xxYwrY0sMcy1vQwQ3v0EkmRyN6kH/bjF8J10ONwM2UxbwlBo/W1ZLqTb pLaaqyGPvltuTCD+mEsqZKgLnVYsjIXqLIA95dcywQiYJ2nefSGsbgKvzlDezAjur+jO 1+wRU1fV1OAFvUWcI2pID/QMgcQjycbDFJvO42lUSsE10ZD316PT+KXLs2RbRZO5MGBk +FKQgECyAr5RxdA7q1muwMRomNDzwuaqvX2FATXISU5uyR1Hz8jUw0okfIC66gE2FN+k POqA== 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=eeN/ZVCekgyzBVdfluaI952fB28+NGzvtQuNBvQl0F4=; b=B+sOaIiO97joewTc6Xx7Pddb5eiDzfI8dyqb3UZHlW14EVaPRzo/9BBL+Rkf9BX4iP /DlImw3EK+RVG1XM4fKQBLFW5S5aMI/RrC4HCUubDcZivg4BGZwMoY/MbA7sJCaQb/LJ r9BiIR0Af55m4GPR6oHZY4LhmD69A/soHCuGa6Ln0XheNRPWf/KzXwrFdrGwiwz2kzMH Fb5FiYQH51gqwDM9+Gd3whOHGSHXFeHTVIyqlHbitErReD+liBvcBlPQUIiDCdxSGbbl d6N6sB0dbsBKer1coi0ulCF043jUuHyUR43B4elFOTL/gUvY2X8BWgAqa+tg54At1ADk UaUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mKjE+Yru; 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 c78-20020a624e51000000b0062ae6345c76si13286896pfb.401.2023.04.05.14.52.55; Wed, 05 Apr 2023 14:53:08 -0700 (PDT) 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=mKjE+Yru; 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 S233891AbjDEVsR (ORCPT + 99 others); Wed, 5 Apr 2023 17:48:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233518AbjDEVsO (ORCPT ); Wed, 5 Apr 2023 17:48:14 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3481C44B6 for ; Wed, 5 Apr 2023 14:48:11 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-947f54f67acso7580466b.1 for ; Wed, 05 Apr 2023 14:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680731289; x=1683323289; 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=eeN/ZVCekgyzBVdfluaI952fB28+NGzvtQuNBvQl0F4=; b=mKjE+YrucVB00cnIxz5ePtLUpfzRlI2aykANj3/Y4X6zTiWTyp9nbNUkAYySQH1YXd YTcgbah83IztmnIFRag8YWb/SHm34S/0XXPzpTthAA8J7n/qtIN9YcG8U/59iZef0WB3 7QRrY6oM+h2YU190CJijXVwKcyyODJF9LxrDV12wObVFVuAh0mLlu/nXI/cYAUQ9s7Qv kM4B8+HfiLG5FdHtVlFZm26FA+RBIfK/ZX3TpmyrIAZa5n19iAfwIMCbiKKrmFhbtq8C MZqG8SRP10ZswxPtC0BuDjWiF2pWqj9ZIuCmdQO6dG9QE3WxOHse2AJGDtMiHhpw1fIx Y/3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680731289; x=1683323289; 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=eeN/ZVCekgyzBVdfluaI952fB28+NGzvtQuNBvQl0F4=; b=7oEp2f2bY//i4DrrM2/MusnJTo2UTp5MojZjW4XudnbrL+ppXD6T3YhgYQFmF4Q5Ks QKgc8Wd5ydWQCArrJANgY9WAvp8/e7v6KCVuIob0NXQeKreEGCykllCGIv57Kn6Yv2jQ DKXQK0bVqVFkXK0wovmKbzTKOC5Lzecr24l+fVhpLXm06b16n3Jvq9NrFLBAyrZDzhUM koH+KnyOxUoa1DwnjKq50+SZWRY7C0OYm/XudI5hnVJ+YQDcMBH1gx2KN55y+CLTLXIP XNQT0IAH8za1uco0G3v9cNl7DAjwSLqlNK4+sc1RHAZ8b30p4jtoMJ4fLXMUkMktcBoI hcag== X-Gm-Message-State: AAQBX9et4w+g9MFzEcPqQb8QTCtZjViqEMFaoh8HceHG9b0UYJmmbchZ t7EdlXxuk35Uw+7cBymlH4M= X-Received: by 2002:a05:6402:1e8e:b0:501:ea97:5192 with SMTP id f14-20020a0564021e8e00b00501ea975192mr3289324edf.4.1680731289690; Wed, 05 Apr 2023 14:48:09 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id j10-20020a17090643ca00b0092f38a6d082sm7790097ejn.209.2023.04.05.14.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 14:48:08 -0700 (PDT) Date: Wed, 5 Apr 2023 23:48:07 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] staging: rtl8192e: Remove unused function _rtl92e_dm_init_wa_broadcom_iot Message-ID: <4ccb680dab2e2e08cb723ca9c11431afc2331779.1680729715.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762374805932935658?= X-GMAIL-MSGID: =?utf-8?q?1762374805932935658?= Remove unused function _rtl92e_dm_init_wa_broadcom_iot and the variables that are not any longer used. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 11 ----------- drivers/staging/rtl8192e/rtl819x_HT.h | 3 --- 2 files changed, 14 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 50486f2a6f3a..93504d5a8578 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -173,7 +173,6 @@ static void _rtl92e_dm_pd_th(struct net_device *dev); static void _rtl92e_dm_cs_ratio(struct net_device *dev); static void _rtl92e_dm_init_cts_to_self(struct net_device *dev); -static void _rtl92e_dm_init_wa_broadcom_iot(struct net_device *dev); static void _rtl92e_dm_check_edca_turbo(struct net_device *dev); static void _rtl92e_dm_check_rx_path_selection(struct net_device *dev); @@ -1531,16 +1530,6 @@ static void _rtl92e_dm_cts_to_self(struct net_device *dev) } } - -static void _rtl92e_dm_init_wa_broadcom_iot(struct net_device *dev) -{ - struct r8192_priv *priv = rtllib_priv((struct net_device *)dev); - struct rt_hi_throughput *ht_info = priv->rtllib->ht_info; - - ht_info->bWAIotBroadcom = false; - ht_info->WAIotTH = WA_IOT_TH_VAL; -} - static void _rtl92e_dm_check_rf_ctrl_gpio(void *data) { struct r8192_priv *priv = container_of_dwork_rsl(data, diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index 22e4f126ed56..f4e9fa849796 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -162,9 +162,6 @@ struct rt_hi_throughput { u8 IOTPeer; u32 iot_action; u8 iot_ra_func; - - u8 bWAIotBroadcom; - u8 WAIotTH; } __packed; struct bss_ht { From patchwork Wed Apr 5 21:48:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 79969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp615278vqo; Wed, 5 Apr 2023 15:02:32 -0700 (PDT) X-Google-Smtp-Source: AKy350Yyf5LIFp6aUwAsPqAKF4ax8AT+z0V35n8CS2s7w07xQkchWqcRBO59mXpMG87j6fKvfXpy X-Received: by 2002:a17:90a:51c5:b0:234:d1c:f112 with SMTP id u63-20020a17090a51c500b002340d1cf112mr8409120pjh.0.1680732151662; Wed, 05 Apr 2023 15:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680732151; cv=none; d=google.com; s=arc-20160816; b=W1UpPJWqYT3Y4RLIw8ZdDoxCDuJ+lh3G6Vdsr/fq4lHlukvzIw73tSqvkRwdj78Fhr 3MdtCOk+l3+PyO3nzsLPhU5+fSEf7Px3N6kFMC48hFPUYtOM4FVY+urLe0imR3sMzzXy EBH47JpN8QJR5yCliYPyyT6M+LjVOYa4EbdoL6cNqsd0DnevGcvw4vf9Gul3Y8y+OSdF vO4USiVb880hPekY4TYYBTEhxfDiYwId2EQyLW5Vv09/e6rVyHUXWdjmLdLl7cbka3RR x9p68UYtmjg7ii1/BpgIdG3VGELyvprQY7h/Ef5ltGrJOu4JBeP0p3VcJVRTpofg5ZrV Fnjg== 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=JGf4CDz/ojeKgq8HqlEbK5p5WGgynUCEomlEJjCxWhM=; b=nMD0zjpXISKZj6UIQz5oLypiaPCODRxmRNK/FwX9laX4W4s6HxU/3alImUs4m80Abq xej62viNxj+Wz1EIDyg8PYxZs+xao6Rc/NS6XD+g1ZqAijGIhQ657my5uDo+YfyEmxIw sepFRerIa8Q63meqN0dmcE3Dih2dQNIXnFEKveOsv8VOvCuQOYYqwa2TtLhakMgqbgiq W6yGsbEa6mklD1Om2myHlJYWDFBwydwIGnPUpL3usPVq8zCJkOnrUBVg7cHlcpN4hiZK irNBnIK9h6zOx1fz57SRjIjayLQQPgo31u2Icdt2mPWnNrm3BnDORLraSLu3B9kZoW6E RIwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aghOJD4T; 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 g6-20020a17090adac600b0023d269ed307si2257036pjx.32.2023.04.05.15.02.17; Wed, 05 Apr 2023 15:02:31 -0700 (PDT) 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=aghOJD4T; 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 S233825AbjDEVsa (ORCPT + 99 others); Wed, 5 Apr 2023 17:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjDEVs1 (ORCPT ); Wed, 5 Apr 2023 17:48:27 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13EA7ABA for ; Wed, 5 Apr 2023 14:48:18 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9333b408ee7so6786266b.1 for ; Wed, 05 Apr 2023 14:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680731297; x=1683323297; 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=JGf4CDz/ojeKgq8HqlEbK5p5WGgynUCEomlEJjCxWhM=; b=aghOJD4TuORdaH/ZUiY+JDoFWh3nrYi3NeUlaYtq/KLt7TYl0mM8AcXkee9Ho5PKUC NkWPS5ZfJEjKU8PH2cvxqzgPdHeYnvPk0Fl2bjbIKHQUvgu1OKwh/Hyvgb8lgk1QAU4u zJaxcHbIvjYZZBjQ5PzrXHS55I8XMI/D6gU+OLv1ufgczgt6pBB9hVXRWgmW0+jY/aPG URRp++npKhL2RPM9oaFW8p1hZ0BxWbUp5PZlhKy77QzPcGS0F1b1MfBD3EG3YsQoEEAE uI9BCGsJnik/QEB8RUYafedIjtC5OqMmAK09FAplhBRB2R0GAF5eavKIZgZ89qRTHpTP ThiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680731297; x=1683323297; 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=JGf4CDz/ojeKgq8HqlEbK5p5WGgynUCEomlEJjCxWhM=; b=4zNoyXfzKflUvQlvLJSoP1i/U3wpHz3ReTJQ1R/8J0X01T90E7VpDAFf4dRTdD+p4u ZIleMCiw9nJAuYOmGW10aj3+h7EVCJX9iW2e8ZG0xFfPBv8NkLm9XoaqMF1jY1gTqkTE bKiqEmpu1ksDQ3CNX2doqfbycph5qyFZ49zao4O7eowPPlKryQVh0a2Ep3XGa6kVrvEG EQ+PHjyMDBf5q9NaSaPYVesBUWtqQg1Qv0bOkqW5qEXTaUjEUtVJlinLOjU+TwPXmRem YdHx9bKoG0ApHh6YxWjyUyCncTPbFoONZdGFJZqu3UaIwN/1xkxeW4+GMdmeVX1Y37bt K/Dg== X-Gm-Message-State: AAQBX9e4lUTL3n2mRuHpSZ9VR7XEBAjqLhqC4HA69XZxBRP9E5BxpiTj 1tLNhIBLySwBSkxA/jucP0o= X-Received: by 2002:a05:6402:268b:b0:501:ea97:519c with SMTP id w11-20020a056402268b00b00501ea97519cmr3797657edd.4.1680731296918; Wed, 05 Apr 2023 14:48:16 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id u3-20020a509503000000b005024a7013ecsm7755606eda.35.2023.04.05.14.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 14:48:16 -0700 (PDT) Date: Wed, 5 Apr 2023 23:48:13 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] staging: rtl8192e: Remove one of two checks for hardware RTL8192SE Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762375396441323512?= X-GMAIL-MSGID: =?utf-8?q?1762375396441323512?= Check for hardware RTL8192SE is done in function _rtl92e_pci_probe() directly and also two lines later in function rtl92e_check_adapter(). Remove top level check to increase readability. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index 7506d7eb7b4c..45989a77a27c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -2130,7 +2130,6 @@ static int _rtl92e_pci_probe(struct pci_dev *pdev, struct r8192_priv *priv = NULL; unsigned long pmem_start, pmem_len, pmem_flags; int err = -ENOMEM; - u8 revision_id; if (pci_enable_device(pdev)) { dev_err(&pdev->dev, "Failed to enable PCI device"); @@ -2189,11 +2188,6 @@ static int _rtl92e_pci_probe(struct pci_dev *pdev, dev->mem_start = ioaddr; dev->mem_end = ioaddr + pci_resource_len(pdev, 0); - pci_read_config_byte(pdev, 0x08, &revision_id); - /* If the revisionid is 0x10, the device uses rtl8192se. */ - if (pdev->device == 0x8192 && revision_id == 0x10) - goto err_unmap; - if (!rtl92e_check_adapter(pdev, dev)) goto err_unmap; From patchwork Wed Apr 5 21:48:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 79966 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp613103vqo; Wed, 5 Apr 2023 14:59:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZLUFkkaSFWFIpvfqnTE46Pg1CTdjEHe19sdNbBB8EVY4eBcxGkH99ve3zEq66JhvU95lSi X-Received: by 2002:a17:903:1c3:b0:1a1:c3eb:af7 with SMTP id e3-20020a17090301c300b001a1c3eb0af7mr9195639plh.55.1680731949395; Wed, 05 Apr 2023 14:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680731949; cv=none; d=google.com; s=arc-20160816; b=l0Hz9PaSZlp2WZD817H7VfEGmqyy4tZMbnsOBk29ro6k3KVr2pnfIcMi5U6FmGUT/N rvh/ub3ItiC17FfJYaXbi7S4Zk2GtXA25HZjat5PLo55BRIg9Kk5+SKFY5lEzGYQBc9G 9XJA0zUfTiG1mu+1L2rExWo4hsEVtwhKyzpz13KLHiyQRgzd7b827hHGMU7GRCgI0Y5z WIQST2cRvY7dwYn3xG/SaM36VjsvAWF6ieB3vojmJQHmFbwta9tuVX43aFtyD/D7xP8Q zOotnhA78+D+LjH/+c59nGmSL/UHJ8eCUMECnBEX7ccNK+SwcUZeQHQe7b2EnFNufzoo jYqw== 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=MCqBVJ5FUAqz6et7gCXC65lddEZjuyWxiqbGgbtDS3g=; b=nvJz0wihLq67+Lskq58ALgBwg1YFmC0GweXfvlj+epM9vBLemwYe/+K6YLLnLbpbWK W3VYqFY2Zfa17nJKONL2gBpKhDsnP92tnVT8anEaQeHh70jnLVTau45DrGs/CySxtmqz FjP4LECiwRRHZA9i4aHlHSwh6zTMR6LGycPL/bDwhhPOii260G+NFeGcrB3/Q/Mf+c7q Hc005BnreKh1yX633ESPSJjVew2ZKYOJuljSq6HZ3FodrN0C3S4w5Iwk7lJD+qoxA2Cw tbUz3lolwxgznweTwPRsNrDMonPKAerBhErY4wagbFYjkExOT7bp8lkvCSKNdrQkQQx0 dABQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OddqGCVQ; 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 l6-20020a170903244600b0019e698b3cefsi10165pls.311.2023.04.05.14.58.56; Wed, 05 Apr 2023 14:59:09 -0700 (PDT) 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=OddqGCVQ; 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 S229731AbjDEVsr (ORCPT + 99 others); Wed, 5 Apr 2023 17:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjDEVsi (ORCPT ); Wed, 5 Apr 2023 17:48:38 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0357DAA for ; Wed, 5 Apr 2023 14:48:23 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-947a47eb908so61186466b.0 for ; Wed, 05 Apr 2023 14:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680731302; x=1683323302; 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=MCqBVJ5FUAqz6et7gCXC65lddEZjuyWxiqbGgbtDS3g=; b=OddqGCVQ9nguKkoLetqbQq9AWu6vI93zintV3cneVBEclDnwlebshfdw2KJ1RnFS4Y 2sXG/aRTSQ+Hq92MJ4CXM10zB7bau3pkNmAyMclQ4nfhjk4/C1z4XXzhEilgRYy/Pnf0 D/8ocAm7myGvsbgbrQLrRYcyHeVXQOVbKyHBv5TrAOmdXxzN3XvHI1VGmPjO2zo/Mstm X4+6x2ogjas8UYmc/Czy7rOzfp3AXz0BqwWcK+cr8IKLPWPOWQT6qWJe18M/+aEQaIVM aVwH18TW2wFqarg7LplLeFXE0ptgWP1EN1XD5MHnlx/7MKcjiTt4MWsfxXlCzb7TIVxR k4Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680731302; x=1683323302; 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=MCqBVJ5FUAqz6et7gCXC65lddEZjuyWxiqbGgbtDS3g=; b=hTmiGT4iaY4uENI1VVMbvMO7QZuRbPhj/+YmFBfcRYhidXM8bzs7mHPro4yuaWfIvj ef2sAEGrUYHnKIgXHiPthSa/a3dIONFStLDiq9LCUFa+SljVxRlvUAvGIKUKKJshARxv Bzo6ccoJuQTST2cZNoYO+9DsfNd58c1R2YkTepyxl2pwkWjQ/3RKDL0AJc6Wy2bnbThV sUJrWJrSoTSsjhF99bFolO7Nteh5U7k+dgIF1eyY6utGTmErjuJf/8HDURehfptt5iN2 bPPugdbBgAKeya7H1e6JIWhPNE+58KChsPUGbWV7WYQXrlDOaGxrTPlYVb5ILWzjW6cO GL1A== X-Gm-Message-State: AAQBX9cxcWQf8HpjTFqJa6ZvBwV8bwgCby5eNv95JfnL6CwZZ6E8GAnC IMo0bDwCDWqLcf0JISCQyo9CS7KgVn4= X-Received: by 2002:a05:6402:27cc:b0:4bb:afe3:e0a with SMTP id c12-20020a05640227cc00b004bbafe30e0amr4846026ede.3.1680731302114; Wed, 05 Apr 2023 14:48:22 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id n19-20020a509353000000b004c09527d62dsm7867721eda.30.2023.04.05.14.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 14:48:21 -0700 (PDT) Date: Wed, 5 Apr 2023 23:48:20 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] staging: rtl8192e: Remove unused local variable irq_line Message-ID: <6ec702e12cb30501fc81693a71a96b238bf09ea0.1680729716.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762375184557416714?= X-GMAIL-MSGID: =?utf-8?q?1762375184557416714?= Remove unused local variable irq_line. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c index 0bc3e013001e..1c3ccd2aabc3 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c @@ -33,11 +33,9 @@ bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev) struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev); u16 device_id; u8 revision_id; - u16 irq_line; device_id = pdev->device; revision_id = pdev->revision; - pci_read_config_word(pdev, 0x3C, &irq_line); priv->card_8192 = NIC_8192E; From patchwork Wed Apr 5 21:48:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 79963 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp611276vqo; Wed, 5 Apr 2023 14:53:42 -0700 (PDT) X-Google-Smtp-Source: AKy350b3L+Ad9RWuwbknJz/4uYsFNZ6VOsSSTfY2WgzhaSGyJ7z0gQTa5uPpF3dGGWXH0qpOVvrb X-Received: by 2002:a17:902:e353:b0:1a0:428b:d8c5 with SMTP id p19-20020a170902e35300b001a0428bd8c5mr6397940plc.45.1680731622229; Wed, 05 Apr 2023 14:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680731622; cv=none; d=google.com; s=arc-20160816; b=msqvMZdAxXvzLGJmD6v8xzvXRcVPKzzZnbz85HClWBTt0pRanRTfs05Cd4wfqEmQET UzFUgp/kZnY1otp6XCd79i/KO8FL09pC6Vwb695sHgsowjo60r/7x+WbsiP27nsAE2Jy iaI9Pqr2hLpMODiIMYfjjXZlH1/dsaf34BPe9cArk2Gd52nkqqOvZn4dQy435lgY1L3F dF5lpsr6xg9Cm4XDwgWvCm0Yf5G8VQSE9t7KRMI0BHvTuy08tUJRG4QuvpylslF9mSwu 4gAIKxQTgQ5RpynT40k5EWALXg3J3VokvY9H/flrDhJ5qoBzHKm3a2DPB9CzDHaFUMeB sVTw== 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=wb89At04Bi8wiMaKMj24IvEwgTW885oVxHw3HIZ4Q3w=; b=U2LN6V2Ke2Y+hOuMWlwyHsRGbY2hvcIf4cpaErDUgkC4qAtPeMqcKqYzOkKtQ1r3mf BYZo8VfP6vKge2ZU+UockqMUVNXSYsCL4YAex+mr5pDkTdup6M84g0MnyaklddycxGgs 1ZfV4w80nL0cQUoETX1Mt9ebAClkvrNd3YSMLBOOsC9mnpcFtx4KhMyxfqQg5rHEUynq fb8n1bFsGddCB/FyeYTLWRS62vg7NNtxXQhrBXBJPXinmucqpkiieLkpb34lEXlR6K7m rxnyhkcHikES5p/gt7QDiSHmyJUG/1YrdQdmO56fqDPGsg1K27oMslCJkIP75arRl2II vo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Bw6jtK5q; 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 11-20020a63030b000000b004fb97a4c536si13308342pgd.873.2023.04.05.14.53.24; Wed, 05 Apr 2023 14:53:42 -0700 (PDT) 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=Bw6jtK5q; 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 S233103AbjDEVsw (ORCPT + 99 others); Wed, 5 Apr 2023 17:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233431AbjDEVsr (ORCPT ); Wed, 5 Apr 2023 17:48:47 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7A327A95 for ; Wed, 5 Apr 2023 14:48:28 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-947f54f67acso7582266b.1 for ; Wed, 05 Apr 2023 14:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680731308; x=1683323308; 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=wb89At04Bi8wiMaKMj24IvEwgTW885oVxHw3HIZ4Q3w=; b=Bw6jtK5qklfy9o5CDcreSbZVT5HtivXxGQm+0wZ8DiE2RXDKk5W6xzuicOPKOnqBBL SRCLjTy1jl1NpzK8c0/ldtJAUnQ9iCwz5G66mKPFN/KPxnuri6vV+lam6cHaYFYFNgiK 2p1nW36YI654ZRvK2x4dJUU2z/tOPF8V5f+ZdxtKrqdR72aS0NlmpKo5hhitBmCB0r0j njaQIsS2i/0uEI+0fGyF33J6cOsSQfVzSBUl8wWxADCdwKPpTwJU5BiAzN3TwUk09/Mp +/tMyuF0B88HwXwBBQR/I/9JjCczmcQnwZJH4OIBjbQFvuKyVTl3CBcBIYTz+JC69oHb rArQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680731308; x=1683323308; 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=wb89At04Bi8wiMaKMj24IvEwgTW885oVxHw3HIZ4Q3w=; b=nT/qbuWa9+BmZqpwt78cFOi+2EBScCDHVed0U6uGWVWfMlR3V0JFm287CH+DpkmAll OzquG12oXtqvoZYob9VGjXi4xBf4LsqT8CGMAx1YwBW7rI2yPNz/nXylEUa8neGBBaQ7 boDqgmyR70jIHNbecxSklCEHDKEB+U/1XL2OvEcCGYyctG7ahza90ybXG1SsdwEeb1MO /N4bVbXyMy7eoizSIEnuNermO7xmSagX6rQmmbKvZuWyoxsDo4L+idrQoaCHpodmkjB3 vXPEk3KPtJHG9BfGwMe+EY68TbXxm6n7iO4ff49InAwli2/x0MvkTJUXvcjV4nmd/lPJ aUAw== X-Gm-Message-State: AAQBX9f6j+Xa8R+hM65VRZn3zyovOH/qj6n1DSebMIgl/E1IHonYMcTU zEtW6cbkGwiisJm8HDy5y18= X-Received: by 2002:a17:906:2093:b0:933:2e79:4632 with SMTP id 19-20020a170906209300b009332e794632mr3098433ejq.1.1680731308443; Wed, 05 Apr 2023 14:48:28 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id y1-20020a170906518100b008c76facbbf7sm7984053ejk.171.2023.04.05.14.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 14:48:27 -0700 (PDT) Date: Wed, 5 Apr 2023 23:48:26 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] staging: rtl8192e: Remove unused variable RF_Type Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1762374841339056928?= X-GMAIL-MSGID: =?utf-8?q?1762374841339056928?= Remove unused variable RF_Type. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtllib.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 7d83a4c322cf..ae7c6a5804ee 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1390,7 +1390,6 @@ struct rtllib_device { size_t assocreq_ies_len, assocresp_ies_len; bool bForcedBgMode; - u8 RF_Type; u8 hwsec_active; bool is_silent_reset;