From patchwork Sun Oct 1 13:44: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: 147097 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp879889vqb; Sun, 1 Oct 2023 06:46:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOAcs35ocGFWD9j89A0kX6qlHBCCS/NIyolhys8cwlwXvbZfUOrsJA3EIk980Cya5riHSN X-Received: by 2002:a05:6a20:918a:b0:15a:f4e:620e with SMTP id v10-20020a056a20918a00b0015a0f4e620emr9034918pzd.59.1696167972686; Sun, 01 Oct 2023 06:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696167972; cv=none; d=google.com; s=arc-20160816; b=OuI/DmJ/hSsVDIPuTl0wStts1PdTtNKlZoGRLCgLYIUbJpG0w+KgmblIEU3bEeZVn9 Ee995Y/7i/yKHgcQgK5K0tMf+pgsRxmhl5RrJQu9htPaV/OhpXkzvpLLwvML4AoAxy/C qahSYbU+M6sQTGShELeP+uDFCvaUqCwIw5yaJKKhGyyIhddqvDOjcZKGrS272BuSRdiQ +8eYNhklkNTt3Bkf3eSLbfjpyIB22+SX017Sd4l1TfzZbUMyqrhp4TMGjmd4IwOUm669 8l1JkcFW8jFmkZYOwmMiqNsFwr07u7nLEY+jMoW7VFsX3/WyIHjeVnIXHzo3lO6ExoTU P12w== 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=LEP+m1gZqUF2dlXF0HPKoDRFFOr5o0irSFxrQKPSymU=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=Ig0vt2+vq/Pd7b2dIKj7TlE+zdySdTeVH/Ee1CO8Vvxp1sTAqisU+iXrlxCw35HBXQ /2u5zc1kC+AYDCqBn0RvYcIto2RIpBgcHzTHQykXoGpv6Z5CplDBc1mAay++7hc52/2t 4shvdJq91jITrOc6auuSTpXqq+y6bwC9UPZOuNIR2HxZaSt2otdVLviiIly79t0f3Vg9 W/TtvLHYj2Rjd5dOapQHO85aMdcmhBcioQK2BQHASH4e66FlI0gPQXwautGxyqr5wEDU e+Fc69UYOCIL3jzB9Ez6LWPtvtDlzjY/wwleagBmg9CarZ/aoYCVSeZo5eZ18/rJTWiZ L+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=g5xtz1LL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s21-20020a63af55000000b00584ba113ec5si14470106pgo.370.2023.10.01.06.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 06:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=g5xtz1LL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 65632806AFE3; Sun, 1 Oct 2023 06:44:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235026AbjJANo2 (ORCPT + 18 others); Sun, 1 Oct 2023 09:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235007AbjJANo1 (ORCPT ); Sun, 1 Oct 2023 09:44:27 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E67F0 for ; Sun, 1 Oct 2023 06:44:24 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-537efaf742aso423233a12.0 for ; Sun, 01 Oct 2023 06:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696167863; x=1696772663; darn=vger.kernel.org; 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=LEP+m1gZqUF2dlXF0HPKoDRFFOr5o0irSFxrQKPSymU=; b=g5xtz1LLx7pKg/SLCtrCrKb7YzcvGAJaYbvZtkKr92jwze/vMhMQ7CWarzlfEb/ZNQ ZJG9sqqtdcJU+7PGhTL0AgZ1sYpz8XPwC5OpmzrTyzLRYUrnd/PFo1/OADgOxhboWgB5 s4MBtGs/QlONWwq314vUhG8b/40CFhc1SYc4dD/FiaN1pVmZl+w2sf11CXq0iFAjaMVq /AoaP080f4leRIMzRAu0emtw8S4hi2TDsfVzXJsvHdIC4uFDr8w41IcTWV7zAhvZZF3j yHBnqCUtudV8Nr6QL9DNdEUT+wLY5K9SaVnoNSaXjpMYsOgGtvMnkwqgVUzogmET3sjH an+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696167863; x=1696772663; 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=LEP+m1gZqUF2dlXF0HPKoDRFFOr5o0irSFxrQKPSymU=; b=QJcre7uYfgXwJ2F5X9IO88YjsqnCnOHSo7/AUYnajNF6aV8f19EiHkBqbuSys5VMm8 0hj8TPp/vcVxgyfd0wh3+Aru50Wc/6gwn7W8Jj3gIJhV/eYSX9PVFpdqiZ9VkRoebHER fnywpI3PHYbzYSJs+7hy6EK0gTGSXJs7NCf5dGTFM5kQ/MSTvxxx1uyY5BBk4ps6YMhC 14TluChGk358/t0+5LmH4S78hahJCDdLgdLjtvQiugeZuY+7PRbb0IWl4NTn5TSEpeYf ojH7goJ84XZ2d8dYFiXUYXSATOehO+xYZCr6HSCS4DCqhEGODCw5nM5qPYjPmToFw+eW N4Fg== X-Gm-Message-State: AOJu0YzGz3bHhxmZFDx0+jUaIobvl0M/TxBJ9uR0W6toChlH4HPYs/Ha sfKoOpvMRiJBMyXFB7kKqm0= X-Received: by 2002:a05:6402:26c5:b0:523:2e64:122b with SMTP id x5-20020a05640226c500b005232e64122bmr7806299edd.3.1696167862351; Sun, 01 Oct 2023 06:44:22 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id x18-20020aa7d6d2000000b0052febc781bfsm14037773edr.36.2023.10.01.06.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 06:44:22 -0700 (PDT) Date: Sun, 1 Oct 2023 15:44:20 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 03/11] staging: rtl8192e: Remove RESET_TYPE_NORMAL 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 01 Oct 2023 06:44:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778561027985710735 X-GMAIL-MSGID: 1778561027985710735 ResetType == RESET_TYPE_NORMAL is always false. Remove dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 5 ----- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c index f67923ccf790..11d20fc11a7d 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c @@ -1237,11 +1237,6 @@ static void _rtl92e_watchdog_wq_cb(void *data) } spin_unlock_irqrestore(&priv->tx_lock, flags); - if (ResetType == RESET_TYPE_NORMAL) { - priv->rst_progress = RESET_TYPE_NORMAL; - return; - } - if ((priv->force_reset || ResetType == RESET_TYPE_SILENT)) _rtl92e_if_silent_reset(dev); priv->force_reset = false; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index fa82a0667813..d6e924fc8011 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -132,7 +132,6 @@ enum rt_customer_id { enum reset_type { RESET_TYPE_NORESET = 0x00, - RESET_TYPE_NORMAL = 0x01, RESET_TYPE_SILENT = 0x02 };