summaryrefslogtreecommitdiff
path: root/components/drivers/rtc
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-10-29 13:35:35 +0000
committer[email protected] <[email protected]>2012-10-29 13:35:35 +0000
commitfa9a7b0b0c5aefebc5c5c0df02ae08a220f9e717 (patch)
treef2b3b62e7e37ec080ad62d0620933dcc69b99a84 /components/drivers/rtc
parentaefe51878008fb723c1ed566a4b8d783a8083475 (diff)
Modified return value
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2379 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/rtc')
-rw-r--r--components/drivers/rtc/alarm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c
index 6036c34353..0eb0b5f494 100644
--- a/components/drivers/rtc/alarm.c
+++ b/components/drivers/rtc/alarm.c
@@ -463,6 +463,11 @@ rt_err_t rt_alarm_start(rt_alarm_t alarm)
{
ret = alarm_set(alarm);
}
+ else
+ {
+ ret = RT_EOK;
+ goto _exit;
+ }
}
if (ret == RT_EOK)