aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/time.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-05-06 14:39:38 +0200
committerRichard Weinberger <richard@nod.at>2019-07-02 23:27:00 +0200
commit56fc187065451ebca74edb30d50de5f10a88339b (patch)
treef1370d263c22e3e6597f2228280d2d5eb88ed8ed /arch/um/kernel/time.c
parentum: fix os_timer_one_shot() (diff)
downloadlinux-dev-56fc187065451ebca74edb30d50de5f10a88339b.tar.xz
linux-dev-56fc187065451ebca74edb30d50de5f10a88339b.zip
um: Timer code cleanup
There are some unused functions, and some others that have unused arguments; clean up the timer code a bit. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to '')
-rw-r--r--arch/um/kernel/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index 0c572a48158e..3898119f773e 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -37,7 +37,7 @@ static int itimer_shutdown(struct clock_event_device *evt)
static int itimer_set_periodic(struct clock_event_device *evt)
{
- os_timer_set_interval(NULL, NULL);
+ os_timer_set_interval();
return 0;
}
@@ -107,7 +107,7 @@ static void __init um_timer_setup(void)
printk(KERN_ERR "register_timer : request_irq failed - "
"errno = %d\n", -err);
- err = os_timer_create(NULL);
+ err = os_timer_create();
if (err != 0) {
printk(KERN_ERR "creation of timer failed - errno = %d\n", -err);
return;