summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorMatteo Croce <mcroce@microsoft.com>2021-02-08 12:33:56 +0100
committerJohannes Berg <johannes.berg@intel.com>2021-02-12 08:52:25 +0100
commit258afa78661178d16288537ffe8ef863c7e5918a (patch)
treef28629ea26251d90507e549b487c15be928837a8 /net/wireless
parent3c5a2fd042d0bfac71a2dfb99515723d318df47b (diff)
cfg80211: remove unused callback
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 <mcroce@microsoft.com> Link: https://lore.kernel.org/r/20210208113356.4105-1-mcroce@linux.microsoft.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/sysfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c
index 043762354a66..9b959e3b09c6 100644
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -82,12 +82,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)
{
@@ -162,7 +156,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,