aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/speakup_keypc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/speakup/speakup_keypc.c')
-rw-r--r--drivers/staging/speakup/speakup_keypc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_keypc.c b/drivers/staging/speakup/speakup_keypc.c
index 4ed38898a17a..cef20fdda646 100644
--- a/drivers/staging/speakup/speakup_keypc.c
+++ b/drivers/staging/speakup/speakup_keypc.c
@@ -229,7 +229,7 @@ spin_lock_irqsave(&speakup_info.spinlock, flags);
ch = PROCSPEECH;
outb_p(ch, synth_port);
SWAIT;
- if ((jiffies >= jiff_max) && (ch == SPACE)) {
+ if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) {
timeout = 1000;
while (synth_writable())
if (--timeout <= 0)