From: Hwankyu Jhun Date: Mon, 2 May 2016 22:39:37 +0000 (+0900) Subject: Remove the unnecessary exception handling X-Git-Tag: submit/tizen/20170725.231500~6^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50911a76441d25bed1ee93124e9afa50d836c801;p=platform%2Fcore%2Fapi%2Fpreference.git Remove the unnecessary exception handling Change-Id: I084d99b3578ffcc3a6338b8b61ada781b0db58fa Signed-off-by: Hwankyu Jhun --- diff --git a/alarm/alarm.c b/alarm/alarm.c index d90e761..b8d21ed 100644 --- a/alarm/alarm.c +++ b/alarm/alarm.c @@ -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;