From: Anil Belur Date: Mon, 30 Jun 2014 13:25:48 +0000 (+0530) Subject: staging: speakup: speakup_dectlk.c - use time_before_eq() X-Git-Tag: v3.17-rc1~123^2~1139 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dd3fde11d3642e37f563e43ef10cd03377923e50;p=karo-tx-linux.git staging: speakup: speakup_dectlk.c - use time_before_eq() - this replaces jiffies comparision with safer function using time_after_eq() Signed-off-by: Anil Belur Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/speakup_dectlk.c b/drivers/staging/speakup/speakup_dectlk.c index af848686be71..c07c9670eef4 100644 --- a/drivers/staging/speakup/speakup_dectlk.c +++ b/drivers/staging/speakup/speakup_dectlk.c @@ -267,7 +267,7 @@ static void do_catch_up(struct spk_synth *synth) else if (ch <= SPACE) { if (!in_escape && strchr(",.!?;:", last)) spk_serial_out(PROCSPEECH); - if (jiffies >= jiff_max) { + if (time_after_eq(jiffies, jiff_max)) { if (!in_escape) spk_serial_out(PROCSPEECH); spin_lock_irqsave(&speakup_info.spinlock,