mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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: Muhammad Falak R Wani <falakreyaz@gmail.com> Acked-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
147280d88f
commit
423b09b8f4
1 changed files with 1 additions and 3 deletions
|
|
@ -760,9 +760,7 @@ lnet_delay_rule_add(struct lnet_fault_attr *attr)
|
|||
wait_event(delay_dd.dd_ctl_waitq, delay_dd.dd_running);
|
||||
}
|
||||
|
||||
init_timer(&rule->dl_timer);
|
||||
rule->dl_timer.function = delay_timer_cb;
|
||||
rule->dl_timer.data = (unsigned long)rule;
|
||||
setup_timer(&rule->dl_timer, delay_timer_cb, (unsigned long)rule);
|
||||
|
||||
spin_lock_init(&rule->dl_lock);
|
||||
INIT_LIST_HEAD(&rule->dl_msg_list);
|
||||
|
|
|
|||
Loading…
Reference in a new issue