Commit 423b09b8 authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Greg Kroah-Hartman

staging: lustre: use setup_timer().

Use setup_timer() for initializing the timer, instead of structure
assignments.
This is the preferred/standard way.
Signed-off-by: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Acked-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 147280d8
...@@ -760,9 +760,7 @@ lnet_delay_rule_add(struct lnet_fault_attr *attr) ...@@ -760,9 +760,7 @@ lnet_delay_rule_add(struct lnet_fault_attr *attr)
wait_event(delay_dd.dd_ctl_waitq, delay_dd.dd_running); wait_event(delay_dd.dd_ctl_waitq, delay_dd.dd_running);
} }
init_timer(&rule->dl_timer); setup_timer(&rule->dl_timer, delay_timer_cb, (unsigned long)rule);
rule->dl_timer.function = delay_timer_cb;
rule->dl_timer.data = (unsigned long)rule;
spin_lock_init(&rule->dl_lock); spin_lock_init(&rule->dl_lock);
INIT_LIST_HEAD(&rule->dl_msg_list); INIT_LIST_HEAD(&rule->dl_msg_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment