From: Ashvini Varatharaj Date: Sat, 19 Oct 2013 03:21:20 +0000 (+0530) Subject: Staging: speakup: removing jiffies comparison using time_after_eq() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75b76b470f8772c0c5745d5546b34716e06cc4b8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman --- 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)