aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 23:48:52 +0800
committerJohannes Berg <johannes.berg@intel.com>2016-01-14 11:13:15 +0100
commita85a7e28f45f7217b9a2efc3ba323de5c0e5b056 (patch)
treedeb98006dee535bcdfcc2a45ac596e985f47c0de /net/mac80211
parentmac80211: document status.freq restrictions (diff)
downloadlinux-dev-a85a7e28f45f7217b9a2efc3ba323de5c0e5b056.tar.xz
linux-dev-a85a7e28f45f7217b9a2efc3ba323de5c0e5b056.zip
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/mac80211')
-rw-r--r--net/mac80211/mlme.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 31d5881b31fa..4af9b2bcc020 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1638,8 +1638,7 @@ void ieee80211_dynamic_ps_timer(unsigned long data)
void ieee80211_dfs_cac_timer_work(struct work_struct *work)
{
- struct delayed_work *delayed_work =
- container_of(work, struct delayed_work, work);
+ struct delayed_work *delayed_work = to_delayed_work(work);
struct ieee80211_sub_if_data *sdata =
container_of(delayed_work, struct ieee80211_sub_if_data,
dfs_cac_timer_work);