Message ID | c0d4e98308c9198776d8d04d1c2910f089f45a90.1679732276.git.philipp.g.hortmann@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp284855vqo; Sat, 25 Mar 2023 01:49:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ZcK7YWkCZFAulzBViSAOOR75p2fOqIKUXj9CqOAJjhv72HzI6FbpGLIcDrNeNGRhOg3A6K X-Received: by 2002:aa7:d8ce:0:b0:4fd:2127:a8bc with SMTP id k14-20020aa7d8ce000000b004fd2127a8bcmr5814289eds.29.1679734160803; Sat, 25 Mar 2023 01:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679734160; cv=none; d=google.com; s=arc-20160816; b=By5UsKSowzkySNoe1z5QwR2mpxidJjbwqLfACTVl9Duv9nPFYDE3Bk1g1X4J239ERp Zh+2Nwfft69GGa3jcN0kMdwvP41cX7N5qiz0pTD0wWNV/HWTO5imst/PW4hipT/Rq5U6 6CAlfRV1s7lOQYiYdMaUG1D394T6IDZ0Ho03a3vFrUcQLksbfNizdQWHlDDqx1MCJpHT nuNWILK/G4nBHKkPWDhsuOZ/6KpVeLKQynoTnD0zOXoieUpyD/okyPf6IgowIYXNHHvK DMgmcSvN9mao1yc2ZQdwc8a+7FJ7z6s7m+8Ht7WclL7d9HmXmeHlUEI/er9RyU6gy2pp qPAQ== 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=dc8fh90KbqBXiSamQ6fXKYW6QBeBG1tBvztL+KlOiwQ=; b=yPcc77fCjBOjxECP37mRk7OTuGYACJNC07vOMVmNnaVAHjCcr2E1gPqU1sWVzJrbAH UcK92vp9KLC5cgS9sJgN9yeIQX/SoFamxbM4G5agdZsgOxp89uj1YrQE1QYe+xvFnYQU 291TRr02y5453BgjfnWw+eJr2Azn+OgFwU9xs4kFpZ6A6Jc47G6qEVI7lZeKHFsV9SmR xgFKhD3+cRH24zrqBDgYRG2QCvvaRbgTaAruSrFHpXLHtqSFrZWWgU2g2VE3dKVJHkVA lhF1Z94ZDMeUOmu6/0QMHoTMhRN9XuxY4G9Hz77IxDsLGcvScy2FQESAK6SP0F5akPBv rFEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=opPGtoK1; 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 r19-20020aa7d593000000b004fadb35d2ddsi24390813edq.431.2023.03.25.01.48.57; Sat, 25 Mar 2023 01:49:20 -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=opPGtoK1; 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 S232221AbjCYIg0 (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Sat, 25 Mar 2023 04:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232147AbjCYIgJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 25 Mar 2023 04:36:09 -0400 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 343BE18AB6 for <linux-kernel@vger.kernel.org>; Sat, 25 Mar 2023 01:36:04 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id ew6so16478161edb.7 for <linux-kernel@vger.kernel.org>; Sat, 25 Mar 2023 01:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679733362; 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=dc8fh90KbqBXiSamQ6fXKYW6QBeBG1tBvztL+KlOiwQ=; b=opPGtoK1ZjhdTj4xeZNlU8az/JqYZ0c0T3Kqnlu5mzLAB6A+8TgqpzNBRFdFy+OX2J Xv7eWBWQWIzQggVobHI4TeDcsfuu8/9EZ5TzIgXhOSOCgjN7ZUvxi1YuFYrxCdhn+kKt oxeAzyytXgEcSOTaGkW1aZ/qLe4VM32x/EilKO+YQgCDYtsllsNMNPXe8fGd78HrMAQ7 IO7ztMd8Y0rvH73VavPpqKGQJBOzB3SPywZ69bZF/T5kiuMdQcyX2z1xsfT2pQgour9B lKPJ3HwK2gCCvSxT1lPB7yKL/xOuPo+xqZelWRX8PTc7BzpE8Lg9csstHmOqA0ujLtUH /99w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679733362; 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=dc8fh90KbqBXiSamQ6fXKYW6QBeBG1tBvztL+KlOiwQ=; b=5l/k+SdoFaVEP8Nrk1EuJAPfoGjroAQdWqf6/0I8ZES57X2DkDJhrCtTjGlrbzR6kb FFFF8K/4ZkHgq+ZlVEe6WP1j6qhb/GX4+m4Cu30tzXJQLm/0TuEj8Hc9EDzgX+Eyj4dY X88wPtyUTxxr0gMjbnHKQLSO6hh6sTqHZojHUiDhMOBULdwnSPYFyCYN9/LZJQw88XfG Fz9vvAcRxq1SheuQrRlkm0A+vSW1Zg3J05xNs0tf1D/h1ds0LyRdhxJZ70hJteelixnX y6gFDH7+P2ku8yl3076lsAyt8KNzV5majm/VoKQPU+0MQFU1bT4tnCizPMKipSoiFPS2 aMvw== X-Gm-Message-State: AAQBX9ex/8hJemjAOxvcGxFsFUGY3BE1JH/tQXWYOOT0FLrndZ8ICb6r 4EGjURJFCLGVSdTFV5BWwQM= X-Received: by 2002:a17:906:74ca:b0:8b1:2614:dea6 with SMTP id z10-20020a17090674ca00b008b12614dea6mr5107443ejl.1.1679733362676; Sat, 25 Mar 2023 01:36:02 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id c3-20020a170906340300b0092fc6971000sm11387480ejb.40.2023.03.25.01.36.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 01:36:02 -0700 (PDT) Date: Sat, 25 Mar 2023 09:36:00 +0100 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/11] staging: rtl8192e: Remove priv->rf_chip in rtl92e_config_phy Message-ID: <c0d4e98308c9198776d8d04d1c2910f089f45a90.1679732276.git.philipp.g.hortmann@gmail.com> References: <cover.1679732276.git.philipp.g.hortmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1679732276.git.philipp.g.hortmann@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761328927014464473?= X-GMAIL-MSGID: =?utf-8?q?1761328927014464473?= |
Series |
staging: rtl8192e: Remove variable priv->rf_chip from driver
|
|
Commit Message
Philipp Hortmann
March 25, 2023, 8:36 a.m. UTC
priv->rf_chip is initialized to RF_8256 and never changed. Remove
condition in function rtl92e_config_phy as it is dead code.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index 6579c7b81bfd..e35085253e70 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -491,25 +491,10 @@ void rtl92e_set_tx_power(struct net_device *dev, u8 channel) bool rtl92e_config_phy(struct net_device *dev) { - struct r8192_priv *priv = rtllib_priv(dev); bool rtStatus = true; - switch (priv->rf_chip) { - case RF_8225: - break; - case RF_8256: - rtStatus = rtl92e_config_rf(dev); - break; - - case RF_8258: - break; - case RF_PSEUDO_11N: - break; + rtStatus = rtl92e_config_rf(dev); - default: - netdev_err(dev, "Invalid RF Chip ID.\n"); - break; - } return rtStatus; }