From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shani Subject: [KJ] Patch:replace with time_after in drivers/net/eexpress.c Date: Wed, 28 Mar 2007 10:44:31 +0530 Message-ID: <1175058871.11584.33.camel@shani-win> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: alan@redhat.com, netdev@vger.kernel.org, kernel-janitors@osdl.org To: philb@gnu.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-janitors-bounces@lists.linux-foundation.org Errors-To: kernel-janitors-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org Hi, Replacing with time_after in drivers/net/eexpress.c Applies and compiles clean on latest tree.Not tested. thanks. Signed-off-by: Shani Moideen ---- diff --git a/drivers/net/eexpress.c b/drivers/net/eexpress.c index 3868b80..7825f78 100644 --- a/drivers/net/eexpress.c +++ b/drivers/net/eexpress.c @@ -115,6 +115,7 @@ #include #include #include +#include = #include #include @@ -556,7 +557,7 @@ static void unstick_cu(struct net_device *dev) = if (lp->started) { - if ((jiffies - dev->trans_start)>50) + if (time_after(jiffies, dev->trans_start + 50)) { if (lp->tx_link=3D=3Dlp->last_tx_restart) { @@ -612,7 +613,7 @@ static void unstick_cu(struct net_device *dev) } else { - if ((jiffies-lp->init_time)>10) + if (time_after(jiffies,lp->init_time + 10)) { unsigned short status =3D scb_status(dev); printk(KERN_WARNING "%s: i82586 startup timed out, status %04x, resetti= ng...\n", @@ -1650,7 +1651,7 @@ eexp_set_multicast(struct net_device *dev) #endif oj =3D jiffies; while ((SCB_CUstat(scb_status(dev)) =3D=3D 2) && - ((jiffies-oj) < 2000)); + (time_after(jiffies, oj + 2000))); if (SCB_CUstat(scb_status(dev)) =3D=3D 2) printk("%s: warning, CU didn't stop\n", dev->name); lp->started &=3D ~(STARTED_CU); -- = Shani Moideen