aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/timer_getoverr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/timer_getoverr.c')
-rw-r--r--sysdeps/unix/sysv/linux/timer_getoverr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/timer_getoverr.c b/sysdeps/unix/sysv/linux/timer_getoverr.c
index 81b9723f01..7862d162b9 100644
--- a/sysdeps/unix/sysv/linux/timer_getoverr.c
+++ b/sysdeps/unix/sysv/linux/timer_getoverr.c
@@ -31,10 +31,6 @@ int
timer_getoverrun (timer_t timerid)
{
#undef timer_getoverrun
- struct timer *kt = (struct timer *) timerid;
-
- /* Get the information from the kernel. */
- int res = INLINE_SYSCALL (timer_getoverrun, 1, kt->ktimerid);
-
- return res;
+ kernel_timer_t ktimerid = timerid_to_kernel_timer (timerid);
+ return INLINE_SYSCALL_CALL (timer_getoverrun, ktimerid);
}