summaryrefslogtreecommitdiffstats
path: root/src/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/timer.c b/src/timer.c
index 68529833..d1a4e7e0 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -132,12 +132,10 @@ int osmo_timer_pending(struct osmo_timer_list *timer)
*/
struct timeval *osmo_timers_nearest(void)
{
- static struct timeval no_timers = { 0, 0 };
-
- if (nearest_p != NULL && !timerisset(nearest_p))
+ if (nearest_p != NULL)
return nearest_p;
else
- return &no_timers;
+ return NULL;
}
static void update_nearest(struct timeval *cand, struct timeval *current)