diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-28 16:43:37 +0100 |
---|---|---|
committer | Antonio Quartulli <a@unstable.cc> | 2016-05-03 20:22:03 +0200 |
commit | 4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d (patch) | |
tree | ea82537fd3749fb14519d42efb27efa2ba2117c8 /net/batman-adv/network-coding.c | |
parent | batman-adv: use list_for_each_entry_safe (diff) | |
download | linux-4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d.tar.xz linux-4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d.zip |
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/network-coding.c')
-rw-r--r-- | net/batman-adv/network-coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c index b41719b6487a..0d3bf4368e9b 100644 --- a/net/batman-adv/network-coding.c +++ b/net/batman-adv/network-coding.c @@ -714,7 +714,7 @@ static void batadv_nc_worker(struct work_struct *work) struct batadv_priv *bat_priv; unsigned long timeout; - delayed_work = container_of(work, struct delayed_work, work); + delayed_work = to_delayed_work(work); priv_nc = container_of(delayed_work, struct batadv_priv_nc, work); bat_priv = container_of(priv_nc, struct batadv_priv, nc); |