Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313Ab3EJMOa (ORCPT ); Fri, 10 May 2013 08:14:30 -0400 Received: from mga14.intel.com ([143.182.124.37]:53450 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752818Ab3EJMO0 (ORCPT ); Fri, 10 May 2013 08:14:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,647,1363158000"; d="scan'208";a="300435088" From: Imre Deak To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Daniel Vetter , Jon Maloy , Allan Stephens , "David S. Miller" , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net Subject: [PATCH 10/11] net/tipc: take msecs_to_jiffies_min into use Date: Fri, 10 May 2013 15:13:28 +0300 Message-Id: <1368188011-23661-10-git-send-email-imre.deak@intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368188011-23661-1-git-send-email-imre.deak@intel.com> References: <1368188011-23661-1-git-send-email-imre.deak@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 874 Lines: 28 Use msecs_to_jiffies_min instead of open-coding the same. Signed-off-by: Imre Deak --- 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..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)); } /** -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/