diff packages/kernel/current/src/common/clock.cxx @ 1249:cfe2937847da

* src/common/clock.cxx: Removed label/goto add_alarm_unlock_return to get rid of compiler error when CYGIMP_KERNEL_COUNTERS_SORT_LIST is enabled.
author nickg
date Fri, 26 Sep 2003 17:41:30 +0000
parents 9ab0a182923a
children de0e43840dee
line wrap: on
line diff
--- a/packages/kernel/current/src/common/clock.cxx
+++ b/packages/kernel/current/src/common/clock.cxx
@@ -384,7 +384,7 @@ void Cyg_Counter::add_alarm( Cyg_Alarm *
             if( list_alarm->trigger > alarm->trigger )
             {
                 alarm_list_ptr->insert( list_alarm, alarm );
-                goto add_alarm_unlock_return;
+                return;
             }
 
             list_alarm = list_alarm->get_next();
@@ -393,15 +393,9 @@ void Cyg_Counter::add_alarm( Cyg_Alarm *
         // a lower or equal alarm time was not found, so drop through
         // so it is added to the list tail
     }
-    alarm_list_ptr->add_tail( alarm );
-
- add_alarm_unlock_return:
-#else    
-    
-    alarm_list_ptr->add_tail( alarm );
-        
 #endif
 
+    alarm_list_ptr->add_tail( alarm );
 }
 
 // -------------------------------------------------------------------------