From patchwork Tue Mar 7 21:00:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 6267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2674653wrd; Tue, 7 Mar 2023 13:34:58 -0800 (PST) X-Google-Smtp-Source: AK7set+hE1XqcxLAjOwbcBNlOMnobUcvPrc4HlY1/IApalzPuHUtbi3q7X/70JfIw2M1kYmY13mK X-Received: by 2002:aa7:d458:0:b0:4af:5aa1:d11b with SMTP id q24-20020aa7d458000000b004af5aa1d11bmr13633300edr.42.1678224898629; Tue, 07 Mar 2023 13:34:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678224898; cv=none; d=google.com; s=arc-20160816; b=UUgEmJdkFVKNj6PyeJUa4jOQKjhzH4ZMS0mXfvGR+PSozUP+lG9WU5u/pChBS1R+13 MjAV43SmG3c7lgZsjTina4Ar+C+CKyHB7jNXWTJf59T0YnMw1wsIb+Zmc5f+ViAEhpHp qubN4W7TbGMsjeUJn5bnDqbKJnO2a++dm0piYAyyhR1oQyALpmSJJt4m9EdZyySTG75t 5lYRS2VOfvzHS9HFnGR2/XFbs3yLUV5cWiOzIEYD2fL/5u26iBqZvjd86tmaLX3z9qYo RwwD0mTTWTGky9h0a18Mp8bJAjFdSp7W4XJdGMdhzptzui5Z+gUTAGLCAR1p/VzQtrpE 5ytQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=a29C3RqRFTjCabKMwALBA2dvqdxdfVXnv8KYiR92qGw=; b=Dcpru3tUeBsEDOX4jsFTLIHGAwvHerfnm/sTI9tGSziABeC2YERbEr+j/NQmK+ihRS DCor5pYbjz1fBYvSENlwl54i/ncOA4MeAzSEuH1RsdawVXPrjOsyZhtCeJna1IpZfqc0 xwNGZqgawhjGNEvofBwN/LugAAjVr3NgiiNXfu3OVxWCP6Z7KCpqE27pipU0OBesABEm 9j3G8K7KfZ4b2THMxZ9fb0I52Rt54g7k7/Xd3Dujxh8WYKQil4WxBfydJ7aR/3T+gq/l PY5mfK3sh/mBoCr97Iijg8Et+/wVcE8TDFB97IUWyb/fDiNQI1uTxpgT98RBQPSGhMA/ NnMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CE8MsnmD; 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 n19-20020aa7c453000000b004bfe6a447f9si2485652edr.186.2023.03.07.13.34.34; Tue, 07 Mar 2023 13:34:58 -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=CE8MsnmD; 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 S229866AbjCGVA5 (ORCPT + 99 others); Tue, 7 Mar 2023 16:00:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjCGVAz (ORCPT ); Tue, 7 Mar 2023 16:00:55 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADC97A2C09 for ; Tue, 7 Mar 2023 13:00:46 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id o12so57646033edb.9 for ; Tue, 07 Mar 2023 13:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678222845; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=a29C3RqRFTjCabKMwALBA2dvqdxdfVXnv8KYiR92qGw=; b=CE8MsnmDuJZhDfn00ZI2O1Y5pI6jrd07thC0NYiDNwd09YYLw6WUy9x/rq++ql2bYJ +Osvfx7kmCkk6LBjClBfy1cqv6MfnK6epR3nF82CaceVwkvl72ECwdS+5XPjLRh1RqpR Aac6MSkDI/figjyG86fruA/ttZcuvuPxPq/+0GBlRy9yljY6XOtcArUkP6igomY2dRUD djGO3LOwdY5akn/SIdpvPq18Nf2niMLtFOwmOt5lJUWuOApoCqr2eh/WkCfyIKFpPAPV blp9c8qbFsMcp8OZGl+YAS5Y8CDr/pBOt4v7xAbljBgemOMsldqWGgAPiuT6RJ7DSsqL GW5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678222845; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a29C3RqRFTjCabKMwALBA2dvqdxdfVXnv8KYiR92qGw=; b=YqCOTFNJ75It8B/Bc6fHd0E1Xyp4Mk+XErE1RK11nakeA6+/Zuzj+f1HyK7fR3lfWj eAl2R7z6t/DQ6W9TNWL+6AWAX7YLd5euBzHyH1er67hbACgM6NqIneWxaZO4bZl5649y wT809TlDP3sqBjEYiMT97eJAqyVpSHVEDAhQC0TXkXHdXgVfjksbeu8w7wn6EC8BO8M9 nfggxGPyusAx98cuOQfrzHmCOxAfVnsbiwLBx7z0KP3AJeW80/NVD3AJpdW53ItrbcD4 jEC3tbsUS3pf6V4WVbxNqdQqh7BcEz7wVeFR4HSD9npznhILtDRh7PDzDm9eMfE2DEw8 NQaA== X-Gm-Message-State: AO0yUKUwuEQ/NrbuaDvekuhr2rJpiVkhX3Qepg1pk7tTlU0RQgTd2D+e T5M/JS9eh+z4GGgtR+NAmv59Pp294Iw= X-Received: by 2002:a17:906:5199:b0:8ae:ea08:3842 with SMTP id y25-20020a170906519900b008aeea083842mr14272853ejk.7.1678222845063; Tue, 07 Mar 2023 13:00:45 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id mb3-20020a170906eb0300b008e772c97db6sm6532417ejb.128.2023.03.07.13.00.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 13:00:44 -0800 (PST) Date: Tue, 7 Mar 2023 22:00:42 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] staging: rtl8192e: Removing unused arrays ..RadioC_A.. and ..ERadioD_A.. Message-ID: MIME-Version: 1.0 Content-Disposition: inline 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,URIBL_BLOCKED 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?1759746351581361142?= X-GMAIL-MSGID: =?utf-8?q?1759746351581361142?= The array Rtl8192PciERadioC_Array and ..RadioD.. is only used in function rtl92e_config_rf_path which is only called in function rtl92e_config_rf. In function rtl92e_config_rf a termination condition for the loop is set to priv->num_total_rf_path = RTL819X_TOTAL_RF_PATH = 2. The loop is only executed with numbers 0 and 1 for eRFPath. So the function rtl92e_config_rf_path is only called with eRFPath for 0 and 1 and never with 2 or 3 that would make the "case RF90_PATH_C:" and "case RF90_PATH_D:" be called. Remove resulting dead code. --- V1->V2: Changed argumentation in the description and subject Tested with rtl8192e Transferred this patch over wlan connection of rtl8192e This patch series requires the patches: "[PATCH 0/2] staging: rtl8192e: Removing rf_type RF_2T4R from driver" "[PATCH] staging: rtl8192e: Change filename r8192E_hwimg.x to table.x" "[PATCH] staging: rtl8192e: Remove call_usermodehelper starting RadioPower.sh" "[PATCH] staging: rtl8192e: Remove function ..dm_check_ac_dc_power calling a script" Philipp Hortmann (2): staging: rtl8192e: Remove unused Array Rtl8192PciERadioC_Array staging: rtl8192e: Remove unused Array Rtl8192PciERadioD_Array .../staging/rtl8192e/rtl8192e/r8192E_phy.c | 24 ------------------- .../staging/rtl8192e/rtl8192e/r8192E_phy.h | 4 ---- drivers/staging/rtl8192e/rtl8192e/table.c | 6 ----- drivers/staging/rtl8192e/rtl8192e/table.h | 4 ---- 4 files changed, 38 deletions(-)