Re: [PATCH] net: bcm63xx_enet: Use setup_timer and mod_timer
From: David Miller
Date: Tue Sep 26 2017 - 14:33:45 EST
From: Himanshu Jha <himanshujha199640@xxxxxxxxx>
Date: Sun, 24 Sep 2017 17:41:24 +0530
> Use setup_timer and mod_timer API instead of structure assignments.
>
> This is done using Coccinelle and semantic patch used
> for this as follows:
>
> @@
> expression x,y,z,a,b;
> @@
>
> -init_timer (&x);
> +setup_timer (&x, y, z);
> +mod_timer (&a, b);
> -x.function = y;
> -x.data = z;
> -x.expires = b;
> -add_timer(&a);
>
> Signed-off-by: Himanshu Jha <himanshujha199640@xxxxxxxxx>
Applied to net-next, thanks.