Re: [lustre-devel] [PATCH] staging: lustre: use setup_timer().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxx>

Acked-by: James Simmons <jsimmons@xxxxxxxxxxxxx>

> ---
>  drivers/staging/lustre/lnet/lnet/net_fault.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/lustre/lnet/lnet/net_fault.c b/drivers/staging/lustre/lnet/lnet/net_fault.c
> index 7d76f28..e4aceb7 100644
> --- a/drivers/staging/lustre/lnet/lnet/net_fault.c
> +++ b/drivers/staging/lustre/lnet/lnet/net_fault.c
> @@ -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);
> -- 
> 1.9.1
> 
> _______________________________________________
> lustre-devel mailing list
> lustre-devel@xxxxxxxxxxxxxxxx
> http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
> 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux