Commit 146ea835 authored by Esra Altintas's avatar Esra Altintas Committed by Greg Kroah-Hartman

staging: speakup: Use time_after_eq to compare jiffies in speakup_keypc.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: default avatarEsra Altintas <es.altintas@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad96f37f
...@@ -229,7 +229,7 @@ spin_lock_irqsave(&speakup_info.spinlock, flags); ...@@ -229,7 +229,7 @@ spin_lock_irqsave(&speakup_info.spinlock, flags);
ch = PROCSPEECH; ch = PROCSPEECH;
outb_p(ch, synth_port); outb_p(ch, synth_port);
SWAIT; SWAIT;
if ((jiffies >= jiff_max) && (ch == SPACE)) { if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
timeout = 1000; timeout = 1000;
while (synth_writable()) while (synth_writable())
if (--timeout <= 0) if (--timeout <= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment