Use of the time_after_eq() macro, defined at linux/jiffies.h, which deal with wrapping correctly and are nicer to read. Signed-off-by: Marcelo Feitoza Parisi --- linux/drivers/net/ppp_async.c 2005-07-13 17:52:19.000000000 -0300 +++ linux-kj/drivers/net/ppp_async.c 2005-07-16 01:15:56.774000552 -0300 @@ -30,6 +30,7 @@ #include #include #include +#include #include #define PPP_VERSION "2.4.2" @@ -576,7 +577,7 @@ * character if necessary. */ if (islcp || flag_time == 0 - || jiffies - ap->last_xmit >= flag_time) + || time_after_eq(jiffies, ap->last_xmit + flag_time)) *buf++ = PPP_FLAG; ap->last_xmit = jiffies; fcs = PPP_INITFCS;