mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
Staging: speakup: removing jiffies comparison in speakup_apollo.c
Fix checkpatch warning: WARNING: Comparing jiffies is almost always wrong; prefer time_after, time_before and friends Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com> Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
75b76b470f
commit
c45a9a9bf3
@@ -179,7 +179,7 @@ static void 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;
|
||||
full_time_val = full_time->u.n.value;
|
||||
|
||||
Reference in New Issue
Block a user