From 9c0751fc60e6282b5f5ff791d53f6f862f1c9c79 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 22 Sep 2016 02:41:46 +0200 Subject: osmo_select_main(): drop useless call to osmo_timers_check() osmo_timers_check() does nothing more than counting the active timers. It is of no use to count them when not using the return value in any way. Change-Id: I8d35ca90a4c16d6f1c7f9793d663e5479783efed --- src/select.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/select.c b/src/select.c index 192cae2f..da273680 100644 --- a/src/select.c +++ b/src/select.c @@ -176,8 +176,6 @@ int osmo_select_main(int polling) /* prepare read and write fdsets */ osmo_fd_fill_fds(&readset, &writeset, &exceptset); - osmo_timers_check(); - if (!polling) osmo_timers_prepare(); rc = select(maxfd+1, &readset, &writeset, &exceptset, polling ? &no_time : osmo_timers_nearest()); -- cgit v1.2.3