[PATCH] net: bcm63xx_enet: Use setup_timer and mod_timer

David Miller davem at davemloft.net
Tue Sep 26 11:33:40 PDT 2017


From: Himanshu Jha <himanshujha199640 at gmail.com>
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 at gmail.com>

Applied to net-next, thanks.



More information about the linux-arm-kernel mailing list