summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/distributed-arp-table.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-28 23:43:37 +0800
committerAntonio Quartulli <a@unstable.cc>2016-05-04 02:22:03 +0800
commit4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d (patch)
treeea82537fd3749fb14519d42efb27efa2ba2117c8 /net/batman-adv/distributed-arp-table.c
parentfb1f23eab6a9cd7d94d47b66f56df77b370a3954 (diff)
downloadlinux-4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d.tar.gz
linux-4ba4bc0f74d32b201cecc33e153a4a18d5c5db1d.tar.bz2
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/distributed-arp-table.c')
-rw-r--r--net/batman-adv/distributed-arp-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c
index ce574e9cef3b..33f273e5354b 100644
--- a/net/batman-adv/distributed-arp-table.c
+++ b/net/batman-adv/distributed-arp-table.c
@@ -152,7 +152,7 @@ static void batadv_dat_purge(struct work_struct *work)
struct batadv_priv_dat *priv_dat;
struct batadv_priv *bat_priv;
- delayed_work = container_of(work, struct delayed_work, work);
+ delayed_work = to_delayed_work(work);
priv_dat = container_of(delayed_work, struct batadv_priv_dat, work);
bat_priv = container_of(priv_dat, struct batadv_priv, dat);