From patchwork Wed Jan 18 19:59:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 45453 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2534699wrn; Wed, 18 Jan 2023 12:00:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXvvM69p7YWGTGz6e42ojQXHPTK9oWSHD8MDeuBtGYCXxevS9eM4a+Uc+kEQT8+xMmQAZDsM X-Received: by 2002:a17:90a:6ac7:b0:229:754:1165 with SMTP id b7-20020a17090a6ac700b0022907541165mr8396039pjm.5.1674072053606; Wed, 18 Jan 2023 12:00:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674072053; cv=none; d=google.com; s=arc-20160816; b=VaIc11wynfkWx37aD0cjUE5WJ/7yunHAAd8dtf8noNIj6MyFsTxCog855rRyu4uD9H xk7bgp+I5vSgasrmbQP2ecq0bMWGZaZl9OvJM7Cbu5Ci+EqvDW8RYQpRJrrS9s59dyp3 rfTloPok5ep/2FTPj+pTizoqRhAq4jqswPYtE7dzrqL/Z03TpUNmIB5XbQ2QCKOF3y6w 6THaMBR/3xrUYAOYKYxx2lDEWB4yxbJ0wl+4b/FHlqL5F2bmLnjOXuZQ4Lv4aMavWUG8 Pemi722pO8aWEt864tQG8e3IG7L4iunadK0DtnowUIHVM/JUlewEct4l4gLmsdhvI6+b iZNA== 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=gL1FkEaorEI3622tNzniLT0WZMhnZ6o6rTarBUJjzLE=; b=DYNRSHHsFvUMFxx2Cyn6kjfKwCe52fgDr6r1yNE7f7wD90WdAVV0hgb1M8SnGufFwd OIA50gdeImaxC9nbUrSVAEN6oe4ZBSxjJr6ExfLYXCZ/ZYwscVXbx1wr8qBWEwQOa+Zs ZNKN59npIlJLPB2g+UqnEeko2gJOJ1QVTE/XEvD52G8PuiK/VsG6TQJwmn+MMKcyDAaN n0x/OJVlGndrdnZjRepnS523/o6r2Nn93lZFkipTH2qwMqHvrW0kEVEYKOQm61GusI6J /+HkQa+TgeKRJEwxdUnuXas8egZ6IeJoZ7+cuiXrQKjOAu1vgkjRHEKkvz7etFYzrRbd T7TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IdJGfjvt; 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 my17-20020a17090b4c9100b001ed40b70436si3451916pjb.155.2023.01.18.12.00.39; Wed, 18 Jan 2023 12:00:53 -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=IdJGfjvt; 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 S229830AbjART7e (ORCPT + 99 others); Wed, 18 Jan 2023 14:59:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjART71 (ORCPT ); Wed, 18 Jan 2023 14:59:27 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEE6539BC for ; Wed, 18 Jan 2023 11:59:25 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id r9so12307955wrw.4 for ; Wed, 18 Jan 2023 11:59:25 -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=gL1FkEaorEI3622tNzniLT0WZMhnZ6o6rTarBUJjzLE=; b=IdJGfjvtx9jkeYj6ysFX/AYke3km1XDMH2XmccyjMDhQhnvhIrkNgm7/rd0DrfbLJ3 rBdIANhozdVkIcM4Tc7CRNQjEuujpoNrmBNwRlRYLjc50UgE5vADHeoqcgemUeVf/l88 7FMwaHSk5qmaxM9REC+0Tya9xw7XMPBF5YCW96eXIkGdllLHBqDowFifin/iH+CJg3El 2ip8hBUtXQAcxms/Uz6QvY901W4Xnx2GizIHiSK0x9R9Xl5mGyvrpSYngehofTs1BLKz efmL2uV7D/Dr46mC12zYP+MKcQOZKC0GyaJTPenmcOn5rgoHmOmJrQerc7yB8qtU9qFd blAQ== 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=gL1FkEaorEI3622tNzniLT0WZMhnZ6o6rTarBUJjzLE=; b=i1bqhpMs7W87/fW0kA0HAAn4xMvm+KZ9b4CQSRfbYKU5GVw4V4CTZz2WMpzmhJmPEa +5XnlEF/AxBNq3zFK2AUIhuGqjcZeCZvnMwpnQ+5JZnDs40xXlipLq1iofBSFfOdjCNV i8pPlmm7rtpyVhszSxbaSDXdvxLcEW9feyU39xHlAUrRChgYP+Z4xfcJiZF6zupA7yLw buakMkQe3WpNchi8YIJ5b45niMDcGvRjXab9+sIC2UtavDi3AkcYXhljpBzS//ZzlSFi 8FjV9zCOufbp/pJS2LciePcAHpp9e+hlIYhc/IvXJVaoBmxmET18Ar3Guxw7XbKBZyTb +tfA== X-Gm-Message-State: AFqh2kq78RFQO8Pd57KF5n7DqNTWqGvJ4+V+CSGufRjbko6qR3Cs4sTO y6B1MEbwYChmI0/D8V4HzOs= X-Received: by 2002:adf:dec3:0:b0:2be:110d:5d4d with SMTP id i3-20020adfdec3000000b002be110d5d4dmr1387304wrn.7.1674071964123; Wed, 18 Jan 2023 11:59:24 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id c18-20020adffb52000000b0025e86026866sm37913858wrs.0.2023.01.18.11.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 11:59:23 -0800 (PST) Date: Wed, 18 Jan 2023 20:59:21 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/9] staging: rtl8192e: Remove unused variable framesyncC34 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?1755391777836976105?= X-GMAIL-MSGID: =?utf-8?q?1755391777836976105?= framesyncC34 is written and then never evaluated. Remove resulting dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index ed27bdbb8fb9..aafe39e50bd9 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -580,7 +580,6 @@ void rtl92e_get_tx_power(struct net_device *dev) priv->def_initial_gain[3] = rtl92e_readb(dev, rOFDM0_XDAGCCore1); priv->framesync = rtl92e_readb(dev, rOFDM0_RxDetector3); - priv->framesyncC34 = rtl92e_readl(dev, rOFDM0_RxDetector2); } void rtl92e_set_tx_power(struct net_device *dev, u8 channel) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index feb48ee35110..626a2bc48969 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -513,7 +513,6 @@ struct r8192_priv { u32 continue_diff_count; bool bswitch_fsync; u8 framesync; - u32 framesyncC34; u8 frame_sync_monitor; u32 reset_count;