Patchwork [10/11] net/tipc: take msecs_to_jiffies_min into use

login
register
mail settings
Submitter Imre Deak
Date May 10, 2013, 12:13 p.m.
Message ID <1368188011-23661-10-git-send-email-imre.deak@intel.com>
Download mbox | patch
Permalink /patch/242963/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Imre Deak - May 10, 2013, 12:13 p.m.
Use msecs_to_jiffies_min 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(-)

Patch

diff --git a/net/tipc/core.h b/net/tipc/core.h
index 0207db0..3f23e22 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_min(msec));
 }
 
 /**