Use of the time_before() macro, defined at linux/jiffies.h, which deal with wrapping correctly and are nicer to read. Signed-off-by: Marcelo Feitoza Parisi --- linux/drivers/media/dvb/frontends/tda8083.c 2005-06-17 16:48:29.000000000 -0300 +++ linux-kj/drivers/media/dvb/frontends/tda8083.c 2005-07-15 21:41:35.441220328 -0300 @@ -30,6 +30,7 @@ #include #include #include +#include #include "dvb_frontend.h" #include "tda8083.h" @@ -172,7 +173,7 @@ { unsigned long start = jiffies; - while (jiffies - start < timeout && + while (time_before(jiffies, start + timeout) && !(tda8083_readreg(state, 0x02) & 0x80)) { msleep(50);