Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1927274rdb; Mon, 9 Oct 2023 07:19:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhOYueFZRZLHbmcYP/TciX0hd3/eq3y3iXIzinz97qUIoE4GQrLVS2I2X/1tqO5l9AA8SB X-Received: by 2002:a05:6a21:a108:b0:16c:b8bd:d0f4 with SMTP id aq8-20020a056a21a10800b0016cb8bdd0f4mr7379770pzc.54.1696861188293; Mon, 09 Oct 2023 07:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696861188; cv=none; d=google.com; s=arc-20160816; b=vFnHl1TdVykpAQ4jMRL7U45q/zVWBAeib39B99KMdih70XSL/6x3ox2EkXZcvTzc36 R9Ay2kIbSzYtqHaHK7h/YTX/0Xk8U01DCRLHAvZ8UT4WzpBs+LFtAn0+GZJjt4V2fxyM B7cVahZI71oekHFC4bZjrloMPIgQ/t8EipHCyN56Ud0W8YN49rLzTdGCTFCR913kRI59 Epc680QUY2BejoN0VuWEtAuDoWnp3qR4B6s0VWZcDgSTMOKSBzqEm1Ym52FgpwMx1Rf9 2PZBW2jgYwLiD+SKiwq9KoFu3f2zrMb2GAojyXPWJh4gUHvxIgl5avtzh1TkzEA3IR3X cUrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N3a5u7HvIfMEnlGuBMPDu5SaQWsUYLyZhrozVXdMJh4=; fh=ocKFAYXnDx4VTTGv96jforXecIDhYWw8gY1Cjoj8AGk=; b=eGRHQY7cCIHb6L17jFdJybwooKPzjFyANZJTu3DXDbs+4TVtD9n+n+dyDep5n9hJBA X0GSKdza5IjkTQLiSVXpUipnp5s5OSzL67MY4lYX4wJ7vEYEvcLCvufu+QGHYKXcVLJm 1PrAZ1D0m3M3s7ROMXQHsgvYp7B1WLXXy0Ve7e/LwSm6nEB0sNAgnuTjCJHVhntxI2Lf fSKIjnBeqeLw4SkWAxyrwDo+LdU36e065KNEydFGPRQa3uhgfDmLfcb4ZJR7qcGFB1H3 OSsnvX6y5h+Vbe5nOUH5jjNevAVhrezJpf/b1vcJlnq4cuUUHg+Qzk54mAT3BmsljVxu 2Bpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YMr9tjF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lb13-20020a170902fa4d00b001b8a4519706si9175499plb.19.2023.10.09.07.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 07:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YMr9tjF1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 35A4B80267E8; Mon, 9 Oct 2023 07:19:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376944AbjJIOTk (ORCPT + 99 others); Mon, 9 Oct 2023 10:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377606AbjJIOTh (ORCPT ); Mon, 9 Oct 2023 10:19:37 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B785C9C; Mon, 9 Oct 2023 07:19:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E8E1C433C7; Mon, 9 Oct 2023 14:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696861175; bh=jUk5LoSlCwvDMsCCVqlbEiQNZWoxEoj1k5W4FLtTq24=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YMr9tjF19Gof+Itm7+HtD6pBLABL6JnNKqDv0GqgFMTjiqCNuGIiuQg23LBzrRVLH Cd2EY9nB5S1g3bPuMinpngUa/BFGlaP2WEVLZDTFIXS4LoTeTapiHO4ikAFS7tYdRh SBnRgYH1UdVYG1QUx7zuRf5CVIJ31R7ujGavgu/JsaB3ToH+aYaW5vw1dZYckcmH/U 8y47pQaVy+M/x574SqcgRbejdQ4qN0Xhhh9DkK5un3EU3XZbFM1K5b9MAlbMU0+HyF wDYZe6jrt97WhLnh561whuPL+XR7eGXLWKBpTMmHTrSkNOgiuyLh0B3E8f2cZVeelc ie/J7fECBH9sA== From: Arnd Bergmann To: Jakub Kicinski Cc: netdev@vger.kernel.org, Greg Kroah-Hartman , linux-wireless@vger.kernel.org, Johannes Berg , linux-wpan@vger.kernel.org, Michael Hennerich , Paolo Abeni , Eric Dumazet , "David S . Miller" , linux-kernel@vger.kernel.org, Doug Brown , Arnd Bergmann Subject: [PATCH 04/10] staging: ks7010: remove unused ioctl handler Date: Mon, 9 Oct 2023 16:19:02 +0200 Message-Id: <20231009141908.1767241-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231009141908.1767241-1-arnd@kernel.org> References: <20231009141908.1767241-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 09 Oct 2023 07:19:47 -0700 (PDT) From: Arnd Bergmann The ndo_do_ioctl function has no actual callers, and doesn't do much here, so just remove it entirely as preparation for removing the callback pointer from net_device_ops. Signed-off-by: Arnd Bergmann --- drivers/staging/ks7010/ks_wlan_net.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index 0fb97a79ad0b3..ab7463bb25169 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -51,8 +51,6 @@ static int ks_wlan_close(struct net_device *dev); static void ks_wlan_set_rx_mode(struct net_device *dev); static struct net_device_stats *ks_wlan_get_stats(struct net_device *dev); static int ks_wlan_set_mac_address(struct net_device *dev, void *addr); -static int ks_wlan_netdev_ioctl(struct net_device *dev, struct ifreq *rq, - int cmd); static atomic_t update_phyinfo; static struct timer_list update_phyinfo_timer; @@ -2458,24 +2456,6 @@ static const struct iw_handler_def ks_wlan_handler_def = { .get_wireless_stats = ks_get_wireless_stats, }; -static int ks_wlan_netdev_ioctl(struct net_device *dev, struct ifreq *rq, - int cmd) -{ - int ret; - struct iwreq *wrq = (struct iwreq *)rq; - - switch (cmd) { - case SIOCIWFIRSTPRIV + 20: /* KS_WLAN_SET_STOP_REQ */ - ret = ks_wlan_set_stop_request(dev, NULL, &wrq->u, NULL); - break; - // All other calls are currently unsupported - default: - ret = -EOPNOTSUPP; - } - - return ret; -} - static struct net_device_stats *ks_wlan_get_stats(struct net_device *dev) { @@ -2608,7 +2588,6 @@ static const struct net_device_ops ks_wlan_netdev_ops = { .ndo_start_xmit = ks_wlan_start_xmit, .ndo_open = ks_wlan_open, .ndo_stop = ks_wlan_close, - .ndo_do_ioctl = ks_wlan_netdev_ioctl, .ndo_set_mac_address = ks_wlan_set_mac_address, .ndo_get_stats = ks_wlan_get_stats, .ndo_tx_timeout = ks_wlan_tx_timeout, -- 2.39.2