]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: speakup: removing jiffies comparison in speakup_apollo.c
authorAshvini Varatharaj <ashvinivaratharaj@gmail.com>
Sat, 19 Oct 2013 03:30:59 +0000 (09:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 12:27:19 +0000 (05:27 -0700)
Fix checkpatch warning: WARNING: Comparing jiffies is almost always
wrong; prefer time_after, time_before and friends

Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com>
Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/speakup_apollo.c

index 95d3132f0a35717a2451070f140f2e237260f1bf..70cf1591676a2c2acb0f33bec628e83d719cbc30 100644 (file)
@@ -179,7 +179,7 @@ static void do_catch_up(struct spk_synth *synth)
                        schedule_timeout(msecs_to_jiffies(full_time_val));
                        continue;
                }
-               if ((jiffies >= jiff_max) && (ch == SPACE)) {
+               if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
                        spin_lock_irqsave(&speakup_info.spinlock, flags);
                        jiffy_delta_val = jiffy_delta->u.n.value;
                        full_time_val = full_time->u.n.value;