diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-28 15:43:37 (GMT) |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-03 18:22:03 (GMT) |
commit | 4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d (patch) | |
tree | ea82537fd3749fb14519d42efb27efa2ba2117c8 /net/batman-adv/bridge_loop_avoidance.c | |
parent | fb1f23eab6a9cd7d94d47b66f56df77b370a3954 (diff) | |
download | linux-4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d.tar.xz |
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>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 56bc971..cad8cb3 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -1303,7 +1303,7 @@ static void batadv_bla_periodic_work(struct work_struct *work) struct batadv_hard_iface *primary_if; int i; - delayed_work = container_of(work, struct delayed_work, work); + delayed_work = to_delayed_work(work); priv_bla = container_of(delayed_work, struct batadv_priv_bla, work); bat_priv = container_of(priv_bla, struct batadv_priv, bla); primary_if = batadv_primary_if_get_selected(bat_priv); |