From 89021ecc8364e727a24b0683a74515c8ddf308db Mon Sep 17 00:00:00 2001 From: Tapasweni Pathak Date: Sun, 21 Sep 2014 19:22:51 +0530 Subject: staging: speakup: remove jiffies comparison using time_after_eq() This patch fixes checkpatch.pl warning in files of speakup WARNING : Comparing jiffies is almost always wrong; prefer time_after, time_before and friends Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- drivers/staging/speakup/synth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/speakup/synth.c') diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index 4c47b6d06a9f..f3aa4239dc68 100644 --- a/drivers/staging/speakup/synth.c +++ b/drivers/staging/speakup/synth.c @@ -122,7 +122,7 @@ void spk_do_catch_up(struct spk_synth *synth) schedule_timeout(msecs_to_jiffies(full_time_val)); continue; } - if ((jiffies >= jiff_max) && (ch == SPACE)) { + if (time_after_eq(jiffies, jiff_max) && (ch == SPACE)) { spin_lock_irqsave(&speakup_info.spinlock, flags); jiffy_delta_val = jiffy_delta->u.n.value; delay_time_val = delay_time->u.n.value; -- cgit v1.2.3-59-g8ed1b