Skip to content

Commit

Permalink
cfg80211: remove unused callback
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
teknoraver authored and jmberg-intel committed Feb 12, 2021
1 parent 3c5a2fd commit 258afa7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/wireless/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 258afa7

Please sign in to comment.