summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEsra Altintas <es.altintas@gmail.com>2014-10-07 22:45:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-20 10:29:12 +0800
commitc65cfb5e5a456759bce8b4986407d95a2d02e8a8 (patch)
tree90bdd79f1371749d4fb68ee0f7b4fae07aeda768 /drivers
parent0f709488c52c11abc36f7f9ba077f8232cb7cd9d (diff)
downloadtalos-obmc-linux-c65cfb5e5a456759bce8b4986407d95a2d02e8a8.tar.gz
talos-obmc-linux-c65cfb5e5a456759bce8b4986407d95a2d02e8a8.zip
staging: speakup: remove jiffies comparison using time_after_eq() in speakup_dtlk.c
The following patch fixes the checkpatch.pl warning: WARNING: Comparing jiffies is almost always wrong; prefer time_after, time_before and friends Signed-off-by: Esra Altintas <es.altintas@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/speakup/speakup_dtlk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_dtlk.c b/drivers/staging/speakup/speakup_dtlk.c
index d7d515273896..4e059ea78d4c 100644
--- a/drivers/staging/speakup/speakup_dtlk.c
+++ b/drivers/staging/speakup/speakup_dtlk.c
@@ -231,7 +231,7 @@ static void do_catch_up(struct spk_synth *synth)
if (ch == '\n')
ch = PROCSPEECH;
spk_out(ch);
- if ((jiffies >= jiff_max) && (ch == SPACE)) {
+ if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
spk_out(PROCSPEECH);
spin_lock_irqsave(&speakup_info.spinlock, flags);
delay_time_val = delay_time->u.n.value;
OpenPOWER on IntegriCloud