[PATCH] drivers/net/hamradio/baycom_epp.c: use time_before() From: Marcelo Feitoza Parisi It deals with wrapping correctly and is nicer to read. Signed-off-by: Marcelo Feitoza Parisi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/net/hamradio/baycom_epp.c =================================================================== --- linux-kj.orig/drivers/net/hamradio/baycom_epp.c 2006-01-18 02:22:23.000000000 +0300 +++ linux-kj/drivers/net/hamradio/baycom_epp.c 2006-01-18 16:41:26.000000000 +0300 @@ -905,7 +905,7 @@ static int epp_open(struct net_device *d /* autoprobe baud rate */ tstart = jiffies; i = 0; - while ((signed)(jiffies-tstart-HZ/3) < 0) { + while (time_before(jiffies, tstart + HZ/3)) { if (pp->ops->epp_read_addr(pp, &stat, 1, 0) != 1) goto epptimeout; if ((stat & (EPP_NRAEF|EPP_NRHF)) == EPP_NRHF) {