[Freeswitch-svn] [commit] r11851 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su

FreeSWITCH SVN mikej at freeswitch.org
Wed Feb 11 09:16:05 PST 2009


Author: mikej
Date: Wed Feb 11 11:16:05 2009
New Revision: 11851

Log:
Wed Jan 28 12:02:55 CST 2009  Pekka Pessi <first.last at nokia.com>
  * su_timer.c: removed redundant checks
  


Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Wed Feb 11 11:16:05 2009
@@ -1 +1 @@
-Wed Feb 11 11:15:31 CST 2009
+Wed Feb 11 11:15:57 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_timer.c	Wed Feb 11 11:16:05 2009
@@ -156,7 +156,6 @@
  */
 
 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 @@
 {
   int retval;
 
-  assert(timers);
-
   if (timers == NULL)
     return -1;
 
@@ -343,9 +340,6 @@
 {
   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 @@
 {
   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 @@
 {
   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);
 }
 



More information about the Freeswitch-svn mailing list