]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: speakup: speakup_dectlk.c - use time_before_eq()
authorAnil Belur <askb23@gmail.com>
Mon, 30 Jun 2014 13:25:48 +0000 (18:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 23:52:33 +0000 (16:52 -0700)
- this replaces jiffies comparision with safer function using
  time_after_eq()

Signed-off-by: Anil Belur <askb23@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/speakup_dectlk.c

index af848686be718a0ae0ba0ae0d2bed457e9bca980..c07c9670eef474999f0ddb41ae0d75bc5327e113 100644 (file)
@@ -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,