Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4542927rwr; Sun, 23 Apr 2023 07:47:36 -0700 (PDT) X-Google-Smtp-Source: AKy350bEVDmLnxwGkx6bw4atJ9q2JHf1svuQ+Rd36TCDV14sKbMg2uoTzAm4gu0lNDj8PAV6Edgx X-Received: by 2002:a05:6a20:9f99:b0:ef:ef3d:6166 with SMTP id mm25-20020a056a209f9900b000efef3d6166mr12106294pzb.32.1682261256430; Sun, 23 Apr 2023 07:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682261256; cv=none; d=google.com; s=arc-20160816; b=I6eFpDiFcWsBzHEgfhYaUaOXR3Tz756ue2KswIUNFPkeYbPnhPBphW/C+x5yRWRJnr 278gFsT1YtqBtdYElWi6afL3b+MWlzbsA4RhhecNCXmnur1APhxAguJyZlm0Zs7iRZII 1Dz13D4w9lGxC2I9AQ/j/WT1yRg3hWiuutpzbQKrBcQ9zHeYpSec0+9ZP0JpOnL5xpij omkVv44tYuko1+WWgNlP74GAgJa7XVx4IylMvPKXA7/QWtDAh1QVIC+vrSoLEdmyNNeo 1Rub7qjDErINLOjVOfMVCHv1Z9QVPMsDkRfyJqfgvouKpOtkefFLOwwcqrUCQxT1TF5C CATQ== 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=60VLuunh9jJIqRQxjmwlBPmHJdKwWWEOI7ooFDJYSHQ=; b=Knaj69zipUKLYQBaw2aVUU4K1BUR944mVG2+ltEcSUESm8kJWKJevByR3oSoCc7hul 6lAOp5hUcz3NfdKrBVGV0Wby9Jq13XBkGIc8B/PdJx8YWliJWpctBTn4ai0Bs08yu5N7 SVlQte8SHwWUyXWe7+xPLyGwGAG6TivDq7I+33tab1cG0+DaQyfrPQLnyCxZFtBwXikC 6k0xYJ7k0GkbZCECiH2VfiWaqeigKsoL66wsc3nZfEn+8mEbLR6Vp5fNmTFdY6Bwc9EZ 9T3mBAIbLcyIjvBX/tKg8+RnlFf+C62y5n5F0xllQgJqV2O0+m9MbSKm3gTrR4lACwLw xZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Lng/wd55"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 137-20020a63078f000000b00513a68ca71asi4508689pgh.742.2023.04.23.07.47.23; Sun, 23 Apr 2023 07:47: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=pass header.i=@gmail.com header.s=20221208 header.b="Lng/wd55"; 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 S230415AbjDWOXL (ORCPT + 99 others); Sun, 23 Apr 2023 10:23:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjDWOXK (ORCPT ); Sun, 23 Apr 2023 10:23:10 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C38D1 for ; Sun, 23 Apr 2023 07:23:00 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-63b70f0b320so5008696b3a.1 for ; Sun, 23 Apr 2023 07:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682259780; x=1684851780; 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=60VLuunh9jJIqRQxjmwlBPmHJdKwWWEOI7ooFDJYSHQ=; b=Lng/wd55ZCIqM3NNkkFneNgE0uJfT0w1M1hyd1qmwFUnpPo2R7UmR4Sh/OkvtG8T9U BfEeEOtOnI3Rc1pv1sA9NAzwW8nbDoPn66kJtnPsN/TRku1/UlET36TbP9ti5G9iT2n2 xCythSSzFgTJHlxbDMb3PuRKwO4RakEXYhSJ6hFUqsiLHX05G7IA97IU/8LMA5OiLbne hVLJHfTLeNZcwBV4voQM7Qd5dnKa8sX1Bc8odAc5L3Vd1OugRN7NngMSex8jo+kTr8WQ oin+Rj3q55yAeJTgv3z4WeANp7owi1eeqbluQyYGrlk7kLEfIBU1uSLAf/nmJZs9xsu8 YfWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682259780; x=1684851780; 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=60VLuunh9jJIqRQxjmwlBPmHJdKwWWEOI7ooFDJYSHQ=; b=Mmeh/rVqXyPAuqNnBHzTAewY5uAhlt4Z2yxkfm91N88GNngGY3QQjnK4GN2pC+XJCf CfOIUfOB6Ht/+IfxoCp63sr+rMxBLy19Cp2SsCOtKRO6sLpUBPs+fCk2XrnfrogHueef r896k9wGLpHcN0swXS2vKq/8IfYE+0GISVOb7o8orYiUCAOHkNAOwJ7A7BPn2XOSbT4J +Vs41keSFYju3EoUYtNI3ASzEHvzeCCaKiSY5IaB7Yf4A++KulTagg3I7rbLTmnL841L cpGJlBs4hTwvyEA1PeOxZkose3VtKCyMs+I/OQ2dCGUH4D/jBuDYqSG0aVtLd9iay0hO R5Fw== X-Gm-Message-State: AAQBX9fH6pia/BVuo0pIKKZym2QzzMB5qAdVAv0ZXqSoBmk9bCPEdech yMJAiUSNXBiTwtRuyz7tyTWS6JOaZyk= X-Received: by 2002:a05:6a20:54a6:b0:f0:ffb:d1e2 with SMTP id i38-20020a056a2054a600b000f00ffbd1e2mr15136204pzk.53.1682259780230; Sun, 23 Apr 2023 07:23:00 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id p11-20020a654bcb000000b0050376cedb3asm5076330pgr.24.2023.04.23.07.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 07:22:59 -0700 (PDT) Date: Sun, 23 Apr 2023 19:52:55 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] staging: rtl8192e: Remove unused _rtl92e_wx_set_sens function Message-ID: <5220fec656830820f0dfd116edddbd0941a5cafa.1682257566.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 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 e4a726cd0b31..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