summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 18:48:52 +0300
committerJohannes Berg <johannes.berg@intel.com>2016-01-14 13:13:15 +0300
commita85a7e28f45f7217b9a2efc3ba323de5c0e5b056 (patch)
treedeb98006dee535bcdfcc2a45ac596e985f47c0de /net/wireless
parent4352a4d7f6bfd0aed0276a13fa4993db35714db4 (diff)
downloadlinux-a85a7e28f45f7217b9a2efc3ba323de5c0e5b056.tar.xz
cfg80211/mac80211: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/mlme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index fb44fa3bf4ef..ff328250bc44 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -711,7 +711,7 @@ EXPORT_SYMBOL(cfg80211_rx_mgmt);
void cfg80211_dfs_channels_update_work(struct work_struct *work)
{
- struct delayed_work *delayed_work;
+ struct delayed_work *delayed_work = to_delayed_work(work);
struct cfg80211_registered_device *rdev;
struct cfg80211_chan_def chandef;
struct ieee80211_supported_band *sband;
@@ -721,7 +721,6 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work)
unsigned long timeout, next_time = 0;
int bandid, i;
- delayed_work = container_of(work, struct delayed_work, work);
rdev = container_of(delayed_work, struct cfg80211_registered_device,
dfs_update_channels_wk);
wiphy = &rdev->wiphy;