From patchwork Mon Apr 24 18:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 87127 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2926436vqo; Mon, 24 Apr 2023 11:16:09 -0700 (PDT) X-Google-Smtp-Source: AKy350bBAzqNzp3u5vPzTL2JN6FfKpfjgyFg0dcPU6UhM+kjnMlXLTxe4pqNL1ilA+FrxjiN9PKz X-Received: by 2002:a05:6a00:2d24:b0:640:ddf8:607a with SMTP id fa36-20020a056a002d2400b00640ddf8607amr3185677pfb.14.1682360169447; Mon, 24 Apr 2023 11:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682360169; cv=none; d=google.com; s=arc-20160816; b=IV6DaD1zjZxNr+EglG6CVVRnBUwtplcAEuLP+/ZclnArWm5EFO27f4LvlFzvBFb/ko SfEMqJ+Ur5Oeq3Uc554tm/Fh0V18COyzqg/SKEw+VV9E+u9VYBtQwOE7qNkJF60LdO9m h3DOhRQzLXdOxEMhVepKDySi2ub5UXBdOpLYUFIbwqKfUl68xQZGBY2+gKeNwpxXzXI/ a0G3ewtKWwAmJnx3BRgJQ1jeE/Z4HUPNNMxN5hEIYtLCfUmBwJEpuDjmsCmz2cuMUpI4 fnvuIWDHRVFFi2BLzc/Pb5wAud17zqEnlDn0eQeG5j7oy4F/2KEnLQqU5rseM2sKQ9ZO YuZQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a630f05000000b00519cded062csi11927004pgl.788.2023.04.24.11.15.55; Mon, 24 Apr 2023 11:16:09 -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 S231503AbjDXSFY (ORCPT + 99 others); Mon, 24 Apr 2023 14:05:24 -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?_function=1B?= Message-ID: <439386d2940fe70ec2092e87211df5e7946aab82.1682358035.git.yogi.kernel@gmail.com> 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764082496930347208?= X-GMAIL-MSGID: =?utf-8?q?1764082496930347208?= 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,