Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp203590rdh; Wed, 25 Oct 2023 22:44:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHr3LGLIMvr1J6yUe2dD0eplih1SiHuTs61/mvbSTZgd8zG7L7LXTO/UTW5cQoF5GiPSK1A X-Received: by 2002:a05:620a:5593:b0:778:991f:2f78 with SMTP id vq19-20020a05620a559300b00778991f2f78mr16494689qkn.38.1698299048531; Wed, 25 Oct 2023 22:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698299048; cv=none; d=google.com; s=arc-20160816; b=IPKACOc6SXKq+PlYkBangTHPVVd3rBu0RokZ4EqL17njYeDQ+WXZcRjObjzsFB0Uee 7UFB7LDoIbIzqIHuyECyeieFqz+dxfFhh0OkibxHuW21h6jbaRvPOPvr1SgPObRAKkjR ywh7N11QqviY6e8f8yWZ4x3jA+1hoRi+CLt2mGyDmtbbbgE368vfVp8gqziN8a0z9sk+ sRBLjnWHXtewqVEWkVe+9hESp8LTjHQTHO77jzZZnDpPi3eNJx/aUv1EQ4qkxllGf3Zn 1VNm/tnipddPzAfvtfpyFWLLGEgrC2k831LvoPk/Isoi7+b5gshsbuxpF3XhCTcgMMES mMTQ== 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=PxIUWq0JvE8ZN9IeEN1TvTq6KPJTuoCETYsX6YOkfb8=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=MWrsE1K2WAbpdFXLdMr58j46SxghsfaCveb3XtHUfF7th8COoPgEvWPiB1NKwLL2JJ xT3ELvLXyb3SbIzrHgIJJMsZhh6sThOMto06+oS/LliLVPskM9JrsQuh2xI/v0ddOz/Y z5ooCkUqgEww292IjuaJT/iNZKfraR7S11uSMyuqnKs0c1QzMGI6cochnsd4x+V08lz7 0eBBd7SyyXglfbmiLNfW4Wz23iBW4ZHbpWUT7mb6ZfhJB/8LfeR+dkKd2/EmkF8UeeZ8 DyhSK/ceUQd5SnnkVElTwziNsI/oVM7dcqkmz+iHmyK2mKQQBEFCcF8MzzAqISPj7FfI hoUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="c2/vbcmX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l64-20020a257043000000b00d8680317987si13261727ybc.592.2023.10.25.22.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:44:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="c2/vbcmX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id E785C8113EC1; Wed, 25 Oct 2023 22:44:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344142AbjJZFn5 (ORCPT + 99 others); Thu, 26 Oct 2023 01:43:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344023AbjJZFnp (ORCPT ); Thu, 26 Oct 2023 01:43:45 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0B01BD for ; Wed, 25 Oct 2023 22:43:42 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53142351997so129034a12.1 for ; Wed, 25 Oct 2023 22:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698299021; x=1698903821; 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=PxIUWq0JvE8ZN9IeEN1TvTq6KPJTuoCETYsX6YOkfb8=; b=c2/vbcmXPgpO7FiDzvVKXPVvoVGl9pyy9+kvdgF8LWVOk9aOKjFAyFIZbagzSdXq4w pT5cS+NRI1j+UhsDIO29jxQ22ESQHNm4D/cpjGtiZKL9Rb0zov8CgzuXgMAFZ/8Ycz+u AHwzQJ3FWTERWQut5dTXUwLqOp875qwlFM12MyvmVwiMrV7uhIxumfMXUN04i7wdE4dl akawUvHWki86k92juF0h7RqJnYdk7jP3rL260jNI1Xi2J1HaNZJdRXJc4hId5J1rlbRy z0d+0WVVOCxcShX6ZdQIRx4GhqC6kMULhfT40FnXYBLTpJPxkVgKElTmLeqMOGGoCZl0 hVTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698299021; x=1698903821; 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=PxIUWq0JvE8ZN9IeEN1TvTq6KPJTuoCETYsX6YOkfb8=; b=tFwqB91T62GR6igt2PfSdYeCSX7ZXXP20Dan3MNQsuYeVVapVROHrjGVNLBKcqRAaq pCplNXd9rw6/LfpFS7JiH5MEDDFQoZS+rKeiKwWjJsdOWVfRb9BP9I9EiNJYzomalRgW IqCdhbS8Hp1bmRdsvoxsBN4nES6qgJ1QD3706wnH6E/TH6lhIRojh0mrxaTpgjLIRjwl gAIo/eCJthOO39OxnhfFcJhVkpVNHD/d17N4abTja+ij8mAznwOH4n2LLyYKzjRoTYs0 W2nvwv63MY7mFFnH8NmVQTcnBmZAFRImD55CTUaCFaj7SkOKZ7YiP6Am5dOF63d+sF0H mUKA== X-Gm-Message-State: AOJu0YzFR3O3QUPeHqQUu3xYLiyV3rIfdw5odJYA/yuM8A9y9oryn5aH 4Atk+ddjS5y4a9fLPALgIqQ= X-Received: by 2002:a50:d4de:0:b0:52f:bedf:8ef1 with SMTP id e30-20020a50d4de000000b0052fbedf8ef1mr12268337edj.3.1698299020782; Wed, 25 Oct 2023 22:43:40 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id q20-20020a056402033400b0053dd8898f75sm10495724edw.81.2023.10.25.22.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:43:40 -0700 (PDT) Date: Thu, 26 Oct 2023 07:43:39 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 02/10] staging: rtl8192e: Remove HTIOTActIsDisableMCS15() Message-ID: <004b43b098f14f82e9614578ea9f04ca95b48b4c.1698295861.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 22:44:06 -0700 (PDT) Remove HTIOTActIsDisableMCS15() as it always returns false which leads to one evaluation that is always false. Remove dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index 18659408bb69..ea01cfce77d8 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -207,11 +207,6 @@ static void HTIOTPeerDetermine(struct rtllib_device *ieee) netdev_dbg(ieee->dev, "IOTPEER: %x\n", ht_info->IOTPeer); } -static bool HTIOTActIsDisableMCS15(struct rtllib_device *ieee) -{ - return false; -} - static bool HTIOTActIsDisableMCSTwoSpatialStream(struct rtllib_device *ieee) { return false; @@ -691,10 +686,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, HTIOTPeerDetermine(ieee); ht_info->iot_action = 0; - bIOTAction = HTIOTActIsDisableMCS15(ieee); - if (bIOTAction) - ht_info->iot_action |= HT_IOT_ACT_DISABLE_MCS15; - bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee); if (bIOTAction) ht_info->iot_action |= HT_IOT_ACT_DISABLE_ALL_2SS; -- 2.42.0