aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshvini Varatharaj <[email protected]>2013-10-19 08:51:20 +0530
committerGreg Kroah-Hartman <[email protected]>2013-10-19 05:27:15 -0700
commit75b76b470f8772c0c5745d5546b34716e06cc4b8 (patch)
tree69d395257bdf707a970a27d8ab5032b5c6a9d584
parent2ef9d838e49b4d6396f9c17a38eb5b85a10da07d (diff)
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 <[email protected]> Reviewed-by: Peter P Waskiewicz Jr <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-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)