batman-adv: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Reviewed-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
This commit is contained in:

committed by
Antonio Quartulli

parent
fb1f23eab6
commit
4ba4bc0f74
@@ -1222,7 +1222,7 @@ static void batadv_purge_orig(struct work_struct *work)
|
||||
struct delayed_work *delayed_work;
|
||||
struct batadv_priv *bat_priv;
|
||||
|
||||
delayed_work = container_of(work, struct delayed_work, work);
|
||||
delayed_work = to_delayed_work(work);
|
||||
bat_priv = container_of(delayed_work, struct batadv_priv, orig_work);
|
||||
_batadv_purge_orig(bat_priv);
|
||||
queue_delayed_work(batadv_event_workqueue,
|
||||
|
Reference in New Issue
Block a user