[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b;

[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b;

[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // smpl @@ expression

[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-27 Thread Vaishali Thakkar
Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // smpl @@ expression

Re: [PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-11 Thread David Miller
From: Vaishali Thakkar Date: Wed, 11 Feb 2015 15:59:50 +0530 > This patch introduces the use of functions setup_timer > and mod_timer. > > This is done using Coccinelle and semantic patch used > for this as follows: ... > Signed-off-by: Vaishali Thakkar Applied. -- To unsubscribe from this

[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-11 Thread Vaishali Thakkar
This patch introduces the use of functions setup_timer and mod_timer. This is done using Coccinelle and semantic patch used for this as follows: // @@ expression x,y,z,a,b; @@ -init_timer (); +setup_timer (, y, z); +mod_timer (, b); -x.function = y; -x.data = z; -x.expires = b; -add_timer();

Re: [PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-11 Thread David Miller
From: Vaishali Thakkar vthakkar1...@gmail.com Date: Wed, 11 Feb 2015 15:59:50 +0530 This patch introduces the use of functions setup_timer and mod_timer. This is done using Coccinelle and semantic patch used for this as follows: ... Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com

[PATCH] drivers/net: Use setup_timer and mod_timer

2015-02-11 Thread Vaishali Thakkar
This patch introduces the use of functions setup_timer and mod_timer. This is done using Coccinelle and semantic patch used for this as follows: // smpl @@ 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;