Skip to content

Commit

Permalink
ALSA: line6: use msecs_to_jiffies for conversion
Browse files Browse the repository at this point in the history
This is only an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var).

Signed-off-by: Nicholas Mc Guire <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Nicholas Mc Guire authored and tiwai committed Feb 3, 2015
1 parent 5864728 commit 695758c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void line6_start_timer(struct timer_list *timer, unsigned int msecs,
void (*function)(unsigned long), unsigned long data)
{
setup_timer(timer, function, data);
mod_timer(timer, jiffies + msecs * HZ / 1000);
mod_timer(timer, jiffies + msecs_to_jiffies(msecs));
}
EXPORT_SYMBOL_GPL(line6_start_timer);

Expand Down

0 comments on commit 695758c

Please sign in to comment.