diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 10:44:40 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-19 10:46:02 (GMT) |
commit | 0f2524b347b1ce16ce6a34cb194445e25bc6ae42 (patch) | |
tree | d10bf2a45525a39463519479a2fa639fb8b74ba0 /sound/usb/line6/driver.c | |
parent | 61864d844c296933d40c02683252bbea5193b101 (diff) | |
download | linux-0f2524b347b1ce16ce6a34cb194445e25bc6ae42.tar.xz |
ALSA: line6: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/driver.c')
-rw-r--r-- | sound/usb/line6/driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c index fc852f6..19904d6 100644 --- a/sound/usb/line6/driver.c +++ b/sound/usb/line6/driver.c @@ -415,8 +415,7 @@ void line6_start_timer(struct timer_list *timer, unsigned int msecs, void (*function)(unsigned long), unsigned long data) { setup_timer(timer, function, data); - timer->expires = jiffies + msecs * HZ / 1000; - add_timer(timer); + mod_timer(timer, jiffies + msecs * HZ / 1000); } /* |