lkml.org 
[lkml]   [2013]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 7/8] net/tipc: take msecs_to_jiffies_timeout into use
Date
Use msecs_to_jiffies_timeout instead of open-coding the same.

Signed-off-by: Imre Deak <imre.deak@intel.com>
---
net/tipc/core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tipc/core.h b/net/tipc/core.h
index 0207db0..b24e2fc 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -133,7 +133,7 @@ static inline void k_init_timer(struct timer_list *timer, Handler routine,
*/
static inline void k_start_timer(struct timer_list *timer, unsigned long msec)
{
- mod_timer(timer, jiffies + msecs_to_jiffies(msec) + 1);
+ mod_timer(timer, jiffies + msecs_to_jiffies_timeout(msec));
}

/**
--
1.7.10.4


\
 
 \ /
  Last update: 2013-05-14 17:21    [W:0.301 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site