From patchwork Sat Feb 6 19:47:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matteo Croce X-Patchwork-Id: 378299 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A89E6C433DB for ; Sat, 6 Feb 2021 19:48:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7859864E25 for ; Sat, 6 Feb 2021 19:48:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229650AbhBFTsg (ORCPT ); Sat, 6 Feb 2021 14:48:36 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:34795 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhBFTsf (ORCPT ); Sat, 6 Feb 2021 14:48:35 -0500 Received: by mail-wr1-f43.google.com with SMTP id g10so12067391wrx.1; Sat, 06 Feb 2021 11:48:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6g1k3SFhjqedu/1j0b61HvZBLCKR46ltwlIl3YSgDVs=; b=lm0Slv6cxbRa+N26dRL+glQ93BzL7Z+5h/+5NgLLSn9kzh6eP8Ztpe/bZ5XJi6EseT +WTz1gIumMfwTBSFxx/ZKA0+mEZa2O6mpCtXjyhqBVXcbkYSSh3fLiHRTVrIP+zGjHr8 XlElhQGEuIWIh5jRK4AfSoyg0zY/32hZeX6Fn1UdqdXgicI40Ai0WVGxmVyhTkBPar3h a6Q8DkD1moVuu+uRD4D2hzG8oC0Tj+iLJ2bIf6MC732yN4iM6SHBkucYpP0GRPol2An8 N4pWYW0WaeLFffTcba+OoEngzYfMHBCGfDMBd4BBQmuC0uNdQLJo4p3+xNvUEiE+e/bi KNHw== X-Gm-Message-State: AOAM531c+rEygXvCn9RekLOadIi3XhF5ay0GimWSxkB6Zo7g7i6G3WEa y1sPy7FB//iWtlm+CF5zalLCLjQQUxE= X-Google-Smtp-Source: ABdhPJwQ2AN7lgHQDkpa5Sp6smR+vnQUcixsh7mmlxuWdUuCMxxwWuV3Smn6d7BvchunugEHEwBzvg== X-Received: by 2002:a05:6000:1082:: with SMTP id y2mr11107594wrw.27.1612640873008; Sat, 06 Feb 2021 11:47:53 -0800 (PST) Received: from msft-t490s.teknoraver.net (net-2-36-203-239.cust.vodafonedsl.it. [2.36.203.239]) by smtp.gmail.com with ESMTPSA id e10sm16922915wro.65.2021.02.06.11.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 11:47:52 -0800 (PST) From: Matteo Croce To: netdev@vger.kernel.org, linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Johannes Berg , "David S. Miller" , Jakub Kicinski Subject: [PATCH RESEND net-next] cfg80211: remove unused callback Date: Sat, 6 Feb 2021 20:47:47 +0100 Message-Id: <20210206194747.11086-1-mcroce@linux.microsoft.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Matteo Croce The ieee80211 class registers a callback which actually does nothing. Given that the callback is optional, and all its accesses are protected by a NULL check, remove it entirely. Signed-off-by: Matteo Croce --- net/wireless/sysfs.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 3ac1f48195d2..41cb4d565149 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c @@ -81,12 +81,6 @@ static void wiphy_dev_release(struct device *dev) cfg80211_dev_free(rdev); } -static int wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) -{ - /* TODO, we probably need stuff here */ - return 0; -} - #ifdef CONFIG_PM_SLEEP static void cfg80211_leave_all(struct cfg80211_registered_device *rdev) { @@ -157,7 +151,6 @@ struct class ieee80211_class = { .owner = THIS_MODULE, .dev_release = wiphy_dev_release, .dev_groups = ieee80211_groups, - .dev_uevent = wiphy_uevent, .pm = WIPHY_PM_OPS, .ns_type = &net_ns_type_operations, .namespace = wiphy_namespace,