[ovs-dev] [PATCH 1/2] timer: Remove timer_expired_at() function.

Ethan Jackson ethan at nicira.com
Thu May 19 01:10:01 UTC 2011


This function has no users, and is a bit of a kludge anyway.
---
 lib/timer.h |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/lib/timer.h b/lib/timer.h
index 2197f93..af5dc1e 100644
--- a/lib/timer.h
+++ b/lib/timer.h
@@ -57,18 +57,11 @@ timer_set_expired(struct timer *timer)
     timer->t = LLONG_MIN;
 }
 
-/* True if 'timer' had (or will have) expired at 'time'. */
-static inline bool
-timer_expired_at(const struct timer *timer, long long int time)
-{
-    return time >= timer->t;
-}
-
 /* True if 'timer' has expired. */
 static inline bool
 timer_expired(const struct timer *timer)
 {
-    return timer_expired_at(timer, time_msec());
+    return time_msec() > timer->t;
 }
 
 /* Returns ture if 'timer' will never expire. */
-- 
1.7.4.4




More information about the dev mailing list