mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00: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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user