mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
cfg80211/mac80211: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
4352a4d7f6
commit
a85a7e28f4
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue