summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorAshvini Varatharaj <ashvinivaratharaj@gmail.com>2013-10-19 09:00:59 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 05:27:19 -0700
commitc45a9a9bf3b179ec1543d4e4e5fe0a7b6e82548e (patch)
treeb8f5df7b2ca68f50e54b5504b5a4238a8d1c5683 /drivers/staging
parent75b76b470f8772c0c5745d5546b34716e06cc4b8 (diff)
downloadtalos-obmc-linux-c45a9a9bf3b179ec1543d4e4e5fe0a7b6e82548e.tar.gz
talos-obmc-linux-c45a9a9bf3b179ec1543d4e4e5fe0a7b6e82548e.zip
Staging: speakup: removing jiffies comparison in speakup_apollo.c
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/speakup/speakup_apollo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_apollo.c b/drivers/staging/speakup/speakup_apollo.c
index 95d3132f0a35..70cf1591676a 100644
--- a/drivers/staging/speakup/speakup_apollo.c
+++ b/drivers/staging/speakup/speakup_apollo.c
@@ -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;
OpenPOWER on IntegriCloud