Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5946393rwr; Mon, 24 Apr 2023 11:10:37 -0700 (PDT) X-Google-Smtp-Source: AKy350Ygokbdh2LPrPssbORek0lAadKvtxf1QbvMGDwlUCbNjEmenEhleQMGNrpO+nHVWA4C66uj X-Received: by 2002:a05:6a00:1a86:b0:637:3234:4e22 with SMTP id e6-20020a056a001a8600b0063732344e22mr20632190pfv.23.1682359836732; Mon, 24 Apr 2023 11:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682359836; cv=none; d=google.com; s=arc-20160816; b=YyozztH0z5iK5SL0KMnFBcmI8MbD499WVqBGI/Apc86MH2m6gdddGMSQHQviBrB8kV 8ckXLf6VwDKhsKUBSGAIv1cJoaTeFmp0ru8+HBcCA6Jqfva5UwYhRTTkvup43OBbzJZw yafhsG2fThgRw45HSVM4Llagf6IzSkg/zL+xv3vDDInOk9XmcM2rhWOebRCQDmicG7NH MUnbMwNdDXkoNCoKKo4qRuL9WCLENKFUlCrrkgPhGdGOdM9mZEhZMayyXcCYVYDusKPw FBKPFiMAi6Dzj+mF7M4Xwd90+tGBPnNVE3hiHY+pdO808fEz9FpalgmtwXmZ9toulinT H77Q== 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=QiIVNyd08SCa9xZF0j0zmRx0TelGskNY2ufTY9xiK5M=; b=mxSalwqQ/4VwlI3SGOoRlUErQ0M1yay2nErcSmXDDilB7hIUAyp2q/UISrAC4oBBP7 RFPvLEqM9PX+3fk8eOe7PftyjxGgKUG4TnPhhWkX62bxwekq3V7GiRlW/2j/3GYgzFNc ZM9aMCbDyBKvElYSJCsGrPezcb5Qkhi0cXxqvAa2DDwqHcjQSZvVLlwi93B+UvzqQIEJ oSo8YVKotfYvpReVD/9Oyh8k2fLmjyBHIznNTnMkf+OxiS/N0iD9R53OR/blM/Ucr5Id 5m9HsKbMqw7O86o5f+Dgrk3FqtkjD5VyBmOA5Z9fYhcljZo6rl7syq40/EoXa35lOyX4 c59Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=FtoVTIjx; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a656218000000b00509461bbf1csi11738910pgv.79.2023.04.24.11.10.23; Mon, 24 Apr 2023 11:10:36 -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=fail header.i=@gmail.com header.s=20221208 header.b=FtoVTIjx; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231796AbjDXSFX (ORCPT + 99 others); Mon, 24 Apr 2023 14:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231908AbjDXSFV (ORCPT ); Mon, 24 Apr 2023 14:05:21 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C474F8683 for ; Mon, 24 Apr 2023 11:05:12 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-63b733fd00bso3957065b3a.0 for ; Mon, 24 Apr 2023 11:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682359512; x=1684951512; 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=QiIVNyd08SCa9xZF0j0zmRx0TelGskNY2ufTY9xiK5M=; b=FtoVTIjxm1x19Xo2myP/LrNBbREUxIokQhVfkVN/WWcLnQHJbK6LNCobiSBale1+2/ /e7VGDPbBjkACeVOB5+Pouc4RVXcBbfHE2FDE2QotgTwwE9lxLy7cqBsBdcFrJwdQSE0 7Wjx4C+xp9cEFBA5Qy5yTnbbBzH4C2MzooslOzgC83BITnm/VVPSSHohEw6CjLXELWmE jmLLgN8/8kGcIFyvsP9Kik6B/JJMgePLQ1Vo1SkgfiUisN1wX07NwpOy9LSrIoiqjxov 5cxCXh+wOEnKcHTcxBxHiPsbxXL8ssBCijXIYYw4yCf0/EHUO9lpibyfyDG7ItnbUS62 zAKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682359512; x=1684951512; 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=QiIVNyd08SCa9xZF0j0zmRx0TelGskNY2ufTY9xiK5M=; b=Lb7Sk05pUlj88TcHhoI42Q98M9tNCG3BpmdeGri/seE8yxnmMGeERoF7X8OdKPwkOs i77oJ3XOeaX0tGUyHTiRSehofItHeaA8iwzSnxkqevxyhbeX8kVJgtmkTSEfcpPjW5qX BDT6821wOrqn2eQYZQWoUUYkd2mcV4z63HzUHVDAsKpV4we39lJcg7pcayUzEFpHEnCg pjAYJzz17sDsljzPxKDawnl9Ff1RrhNhLACm0yXQzj07taa9hnOC4iUM0Tjgg9BCwaii BCMhJpVZspnZi1Lz/SLc6k2KM5+hAuaWxQmMXPMy/Cl3jHp+B4nmPmZv7zBXWS3S6RmS bzrA== X-Gm-Message-State: AAQBX9dpsAMeBKwd5lbBaf5fzfXbkuzv6bS6uqGyu2mi/GwNANdtYqtn vyESFupFL/KVsxQHHXr1IoQI3Px0UIg= X-Received: by 2002:a05:6a21:33a2:b0:f2:9378:814a with SMTP id yy34-20020a056a2133a200b000f29378814amr13326744pzb.49.1682359512298; Mon, 24 Apr 2023 11:05:12 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id s1-20020a056a00178100b00625d84a0194sm7794339pfg.107.2023.04.24.11.05.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 11:05:11 -0700 (PDT) Date: Mon, 24 Apr 2023 23:35:07 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/4] staging: rtl8192e: Remove unused _rtl92e_wx_set_sens =?ISO-8859-1?Q?=20function=1B?= Message-ID: <439386d2940fe70ec2092e87211df5e7946aab82.1682358035.git.yogi.kernel@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=-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,T_SCC_BODY_TEXT_LINE 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 After removal of rf_set_sens variable, the _rtl92e_wx_set_sens function always returns an error code. This commit removes the unused function and the respective ioctl. Suggested-by: Philipp Hortmann Signed-off-by: Yogesh Hegde --- Changes in v5: 1. Rebased onto latest staging-testing branch Changes in v4: 1. Split changes into patch series per feedback from gregkh@linuxfoundation.org Changes in v3: -- None Changes in v2: -- None Changes in v1: -- None --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c index f0c590064def..0bb657fda06c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -803,25 +803,6 @@ static int _rtl92e_wx_get_retry(struct net_device *dev, return 0; } -static int _rtl92e_wx_set_sens(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - struct r8192_priv *priv = rtllib_priv(dev); - - short err = 0; - - if (priv->hw_radio_off) - return 0; - - mutex_lock(&priv->wx_mutex); - err = -1; -exit: - mutex_unlock(&priv->wx_mutex); - - return err; -} - static int _rtl92e_wx_set_encode_ext(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) @@ -1042,7 +1023,6 @@ static iw_handler r8192_wx_handlers[] = { [IW_IOCTL(SIOCGIWFREQ)] = _rtl92e_wx_get_freq, [IW_IOCTL(SIOCSIWMODE)] = _rtl92e_wx_set_mode, [IW_IOCTL(SIOCGIWMODE)] = _rtl92e_wx_get_mode, - [IW_IOCTL(SIOCSIWSENS)] = _rtl92e_wx_set_sens, [IW_IOCTL(SIOCGIWRANGE)] = _rtl92e_wx_get_range, [IW_IOCTL(SIOCSIWAP)] = _rtl92e_wx_set_wap, [IW_IOCTL(SIOCGIWAP)] = _rtl92e_wx_get_wap, -- 2.34.1