From fff2dd5b662ab3a14d9ca4ca1b57c477ebcd1032 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 17:16:05 +0000 Subject: [PATCH] Wed Jan 28 12:02:55 CST 2009 Pekka Pessi * su_timer.c: removed redundant checks git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11851 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/su/su_timer.c | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 086cdea6dd..91ae56a049 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Wed Feb 11 11:15:31 CST 2009 +Wed Feb 11 11:15:57 CST 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c b/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c index 63f720c354..8923c69446 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c @@ -156,7 +156,6 @@ typedef union { */ struct su_timer_s { - /** Pointers within red-black tree */ su_task_r sut_task; /**< Task reference */ size_t sut_heap_index; /**< Timer is set (inserted in heap) */ su_time_t sut_when; /**< When timer should be waken up next time */ @@ -219,8 +218,6 @@ su_timer_set0(su_timer_queue_t *timers, { int retval; - assert(timers); - if (timers == NULL) return -1; @@ -343,9 +340,6 @@ int su_timer_set_interval(su_timer_t *t, { su_timer_queue_t *timers = su_timer_tree(t, 0, "su_timer_set_interval"); - if (t == NULL) - return -1; - return su_timer_set0(timers, t, wakeup, arg, su_now(), interval); } @@ -367,9 +361,6 @@ int su_timer_set(su_timer_t *t, { su_timer_queue_t *timers = su_timer_tree(t, 1, "su_timer_set"); - if (timers == NULL) - return -1; - return su_timer_set0(timers, t, wakeup, arg, su_now(), t->sut_duration); } @@ -391,9 +382,6 @@ int su_timer_set_at(su_timer_t *t, { su_timer_queue_t *timers = su_timer_tree(t, 0, "su_timer_set_at"); - if (timers == NULL) - return -1; - return su_timer_set0(timers, t, wakeup, arg, when, 0); }