From patchwork Mon Apr 24 18:04:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 87126 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2923502vqo; Mon, 24 Apr 2023 11:11:05 -0700 (PDT) X-Google-Smtp-Source: AKy350YtbS/K0KDfTYYZoKIeUUSKpiQNs11H+Pk7BSngNx9NfF/9iBwr6D7wfh9rhGDMUS04KFa6 X-Received: by 2002:a05:6a00:1695:b0:63b:84a4:7b0 with SMTP id k21-20020a056a00169500b0063b84a407b0mr19024941pfc.30.1682359865635; Mon, 24 Apr 2023 11:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682359865; cv=none; d=google.com; s=arc-20160816; b=0fekcLpZiJr9N5RqO8cV7MoEglwANrveUk4F+vzph2231U6CQD01JizlvtSMstUruu Aog/b/uqd854hTZXTZwHJv7RA5B5KvwcvgMDbLkdxO7If2PPnH6j3/cDxMvIYmyjbDL6 u+d/z9Z52Q3oPgGUZWF/AVnySy7TQZ/D5WIalZD03maebhW+e161ICHvi/0sI+nH+U5e 5J4uOrD5vM1A5qcmCtAHurmOcr87grLS/01a2Xg8ncmtU1TcWxI/fFdJAKpioVU1MrMs nXEp72DsC4ngAf5jhuTFRq41t9NqqEHhgtwYTJjuzeKQU/QMKptLVI7Vk/+U7ZF0bxaP HCjQ== 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=9W3bGp63HvrS4+xBjDVhbzlULsCiRVmQgDYYgNevJZE=; b=MdNAvuYs4JcRVeZURuMpb4pFvIZb071JOYomU/1jyU7p4rDfxWBWaKcPahui1hFhAt D6JWNfD9b7z0/HvlV4yjxK6DtGLwR0LsPM/h39SZWqNJ70i+PAe5ZdBZ11a4XrDbGHwp H02Q8CYP8bH8bn7Uqb86IlM9LsfTS9ibtwq4VNJPFUWQIwJ7UUDAKpwM4iKewkXgDpVY 1dp33N5JOurde+6snZufJyBAHLr8MumO2SFxIAK7VCa41Uwxkm5vHNNpWSGSNFDYZzo+ A+xJkJQIIhXQBDzE6frASQPww8uDW5ayfDizEQjI8cdJr/rqQMbFskYDfPQ5Mpj00jub G9pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qbnnG0C4; 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 t13-20020a654b8d000000b00524f8b0f257si5742113pgq.102.2023.04.24.11.10.52; Mon, 24 Apr 2023 11:11:05 -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=qbnnG0C4; 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 S232244AbjDXSEq (ORCPT + 99 others); Mon, 24 Apr 2023 14:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbjDXSEo (ORCPT ); Mon, 24 Apr 2023 14:04:44 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57235258 for ; Mon, 24 Apr 2023 11:04:43 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1a6817adde4so52731625ad.0 for ; Mon, 24 Apr 2023 11:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682359483; x=1684951483; 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=9W3bGp63HvrS4+xBjDVhbzlULsCiRVmQgDYYgNevJZE=; b=qbnnG0C4A/Rn7+VqEmuzUg9FuGwvyZaKQjdmVVbgXXZ/i2FIp8FyQM9Kxy5jHQYXLI 47wMuUc6Y27vZE0hm8HGX3xu846ClshPJw1J3XE6qFA0gAv1zvaov8dNo9pYPEaYkt3/ nQUwHLBb1OCcTvZLNp72G1BEtOB/4ZKHW79isgGYG5768fwgUHMgT3Ute7BTkLifI99U Uv4mEgXOEoby2DIrW/D+J1o1UU0S4vnqUZLrP2UZIAngc8mN2iCzrqCLluy6U7uyO+7E rgVmI9ODPveMDhXOxWbOFIxWaBEUKuErhWCtOz+wc8lYEWPW3IOSgJf/0Y3VkjJ/UU5m 5GbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682359483; x=1684951483; 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=9W3bGp63HvrS4+xBjDVhbzlULsCiRVmQgDYYgNevJZE=; b=jUvRZPvqWzkJ/S/jMQIGKPNbixn848FM6PhJn3OFG8kQw/hzQGZ0dzMJPbeuAHw16f /42VMz/Rj0cR/7awIglCvb8g3xhyBSHpqDmj2+L0E2hAzOfGn21Ht+bB7veL8hmupCaT iId8d/5NN3aJ9etDEv1Wu7YOWfRl5530clEQ9Ao//1Sd3738FNi1jf7YuL01GsfdGIDM Ppp7t+flKlyvy6hG5f3Re7MxGsYGe9/RtWs+XsNEJ96aZJvXECp9zDKXEkDIFtKcm8Gc csfuh6zbfuZT19IEScpqdMQlexBKXe/XRmmw0Fxytmp5risDFxXotXXriA/qb9BxZyLc uytg== X-Gm-Message-State: AAQBX9e/cJ6TAbOjoZ5b+NS763PlQwHBGqskpupIFHisDXVirQw8lRa2 PXWKAQcIoO66tTVEp4Jqd0d6j8EwBC4= X-Received: by 2002:a17:902:fa86:b0:1a6:9906:1eb7 with SMTP id lc6-20020a170902fa8600b001a699061eb7mr12726001plb.35.1682359483140; Mon, 24 Apr 2023 11:04:43 -0700 (PDT) Received: from pop-os.localdomain ([103.251.210.208]) by smtp.gmail.com with ESMTPSA id d1-20020a170902aa8100b001a051eb014bsm6831251plr.219.2023.04.24.11.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 11:04:42 -0700 (PDT) Date: Mon, 24 Apr 2023 23:34:38 +0530 From: Yogesh Hegde To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/4] staging: rtl8192e: Remove unused _rtl92e_wx_get_sens function Message-ID: 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?1764082178339615035?= X-GMAIL-MSGID: =?utf-8?q?1764082178339615035?= After removal of rf_set_sens variable, the _rtl92e_wx_get_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 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c index cc1af367f37d..f0c590064def 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -803,15 +803,6 @@ static int _rtl92e_wx_get_retry(struct net_device *dev, return 0; } -static int _rtl92e_wx_get_sens(struct net_device *dev, - struct iw_request_info *info, - union iwreq_data *wrqu, char *extra) -{ - struct r8192_priv *priv = rtllib_priv(dev); - - return -1; -} - static int _rtl92e_wx_set_sens(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) @@ -1052,7 +1043,6 @@ static iw_handler r8192_wx_handlers[] = { [IW_IOCTL(SIOCSIWMODE)] = _rtl92e_wx_set_mode, [IW_IOCTL(SIOCGIWMODE)] = _rtl92e_wx_get_mode, [IW_IOCTL(SIOCSIWSENS)] = _rtl92e_wx_set_sens, - [IW_IOCTL(SIOCGIWSENS)] = _rtl92e_wx_get_sens, [IW_IOCTL(SIOCGIWRANGE)] = _rtl92e_wx_get_range, [IW_IOCTL(SIOCSIWAP)] = _rtl92e_wx_set_wap, [IW_IOCTL(SIOCGIWAP)] = _rtl92e_wx_get_wap,