From: Marcelo Feitoza Parisi Date: Tue, 19 Jul 2005 20:55:14 +0000 (-0700) Subject: [ATM]: [idt77252] use time_after() macro X-Git-Tag: v2.6.13-rc4~84^2~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bd232b641a0d0ef184a5154409ef38aebb3155;p=linux-2.6 [ATM]: [idt77252] use time_after() macro Signed-off-by: Marcelo Feitoza Parisi Signed-off-by: Domen Puncer Signed-off-by: Chas Williams Signed-off-by: David S. Miller --- diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index baaf1a3d22..30b7e990ed 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c @@ -46,6 +46,7 @@ static char const rcsid[] = #include #include #include +#include #include #include #include @@ -780,7 +781,7 @@ push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) return 0; out: - if (jiffies - scq->trans_start > HZ) { + if (time_after(jiffies, scq->trans_start + HZ)) { printk("%s: Error pushing TBD for %d.%d\n", card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); #ifdef CONFIG_ATM_IDT77252_DEBUG