aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/speakup_acntpc.c
diff options
context:
space:
mode:
authorAshvini Varatharaj <ashvinivaratharaj@gmail.com>2013-10-19 08:51:20 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-19 05:27:15 -0700
commit75b76b470f8772c0c5745d5546b34716e06cc4b8 (patch)
tree69d395257bdf707a970a27d8ab5032b5c6a9d584 /drivers/staging/speakup/speakup_acntpc.c
parentMerge tag 'iio-for-3.12d' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next (diff)
downloadlinux-dev-75b76b470f8772c0c5745d5546b34716e06cc4b8.tar.xz
linux-dev-75b76b470f8772c0c5745d5546b34716e06cc4b8.zip
Staging: speakup: removing jiffies comparison using time_after_eq()
Fix checkpatch 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/speakup/speakup_acntpc.c')
-rw-r--r--drivers/staging/speakup/speakup_acntpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_acntpc.c b/drivers/staging/speakup/speakup_acntpc.c
index 80141aca712f..1c8a7f4a0ef5 100644
--- a/drivers/staging/speakup/speakup_acntpc.c
+++ b/drivers/staging/speakup/speakup_acntpc.c
@@ -223,7 +223,7 @@ static void do_catch_up(struct spk_synth *synth)
if (ch == '\n')
ch = PROCSPEECH;
outb_p(ch, speakup_info.port_tts);
- if (jiffies >= jiff_max && ch == SPACE) {
+ if (time_after_eq(jiffies, jiff_max) && ch == SPACE) {
timeout = SPK_XMITR_TIMEOUT;
while (synth_writable()) {
if (!--timeout)