Remove the unnecessary exception handling
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 d90e76155a0f873cad4f90cc20d223af9213d310..b8d21ed4d7e48d2ee9c2bb37697a8a3542ad0f2f 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;