Remove the unnecessary exception handling 54/68154/1 accepted/tizen/common/20160504.125302 accepted/tizen/ivi/20160503.093016 accepted/tizen/mobile/20160503.092918 accepted/tizen/tv/20160503.092942 accepted/tizen/wearable/20160503.092954 submit/tizen/20160503.003646
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 2 May 2016 22:39:37 +0000 (07:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 2 May 2016 22:39:37 +0000 (07:39 +0900)
Change-Id: I084d99b3578ffcc3a6338b8b61ada781b0db58fa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
alarm/alarm.c

index d90e761..b8d21ed 100644 (file)
@@ -152,13 +152,7 @@ int alarm_get_scheduled_period(int alarm_id, int *period)
                return convert_error_code_to_alarm(__FUNCTION__, result);
        }
 
-       result = alarmmgr_free_alarm(entry);
-       if (result != ALARMMGR_RESULT_SUCCESS) {
-               if (entry != NULL)
-                       alarmmgr_free_alarm(entry);
-
-               return convert_error_code_to_alarm(__FUNCTION__, result);
-       }
+       alarmmgr_free_alarm(entry);
 
        (*period) = value;
 
@@ -471,13 +465,7 @@ int alarm_get_scheduled_recurrence_week_flag(int alarm_id, int *week_flag)
                return convert_error_code_to_alarm(__FUNCTION__, result);
        }
 
-       result = alarmmgr_free_alarm(entry);
-       if (result != ALARMMGR_RESULT_SUCCESS) {
-               if (entry != NULL)
-                       alarmmgr_free_alarm(entry);
-
-               return convert_error_code_to_alarm(__FUNCTION__, result);
-       }
+       alarmmgr_free_alarm(entry);
 
        (*week_flag) = value;