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/usb/input/ati_remote.c 2005-07-13 17:53:35.000000000 -0300 +++ linux-kj/drivers/usb/input/ati_remote.c 2005-07-14 15:44:54.660430016 -0300 @@ -476,7 +476,8 @@ /* Filter duplicate events which happen "too close" together. */ if ((ati_remote->old_data[0] == data[1]) && (ati_remote->old_data[1] == data[2]) && - ((ati_remote->old_jiffies + FILTER_TIME) > jiffies)) { + (time_before(jiffies, ati_remote->old_jiffies + + FILTER_TIME))) { ati_remote->repeat_count++; } else { ati_remote->repeat_count = 0;