summaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/speakup_dectlk.c
diff options
context:
space:
mode:
authorAnil Belur <askb23@gmail.com>2014-06-30 13:25:48 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-08 23:52:33 (GMT)
commitdd3fde11d3642e37f563e43ef10cd03377923e50 (patch)
tree6cf04b11dbc762e99412b1eca01ef844e0a912eb /drivers/staging/speakup/speakup_dectlk.c
parentbc4f07c86eec8d530d8124530067b589b4be5c71 (diff)
downloadlinux-dd3fde11d3642e37f563e43ef10cd03377923e50.tar.xz
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 <askb23@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/speakup_dectlk.c')
-rw-r--r--drivers/staging/speakup/speakup_dectlk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_dectlk.c b/drivers/staging/speakup/speakup_dectlk.c
index af84868..c07c967 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,