From patchwork Sun Apr 23 14:22:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 86749 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2231008vqo; Sun, 23 Apr 2023 07:47:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZFpu1zN9hySr5pJbRnxM0irnfuxY5rgjWidbj04RRLnQxgMGFRxa3TMhCspwdC1gYWyS4W X-Received: by 2002:a17:90a:ac05:b0:237:44c3:df0b with SMTP id o5-20020a17090aac0500b0023744c3df0bmr11064290pjq.32.1682261262446; Sun, 23 Apr 2023 07:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682261262; cv=none; d=google.com; s=arc-20160816; b=STgfDpwD2Bh6CG5R+KkjPjrMLFyxjH/F/ctG/rADNMDl0lmx9kmyA7Pv2PSndVTTo+ uU7MyStyugNbPaAonUAIrVdL3nNHkE7SqXW4GWirIMaB1OWbUQFbsVgyFFExxHpFgm0w CgyfYPEARdjPBXvL2CRrtHGpfWxYQYUqvnv6Ue6FGeqe2A26BZ0iE500BO0dIbhBziC9 gApEFfcFp1JrPAglHW6rh9dpofj9r8om9BCtrZkqMsMbJgVQwrETpiq4F3490uH6tPEQ LthYf2oY59Rsmxl2wEzOe5AGu1UydPUSyhn0R47dJCsGTqrIbQ3fWdH8p9FjYygjSNWz xeTQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on12-20020a17090b1d0c00b002496c7b0495si9857399pjb.128.2023.04.23.07.47.27; Sun, 23 Apr 2023 07:47:42 -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 S230403AbjDWOXL (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-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?1763978785936851237?= X-GMAIL-MSGID: =?utf-8?q?1763978785936851237?= 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,