STM32 RTC alarm: remove some if 0ed out logic.

This commit is contained in:
Gregory Nutt 2016-04-04 08:16:53 -06:00
parent 19aa5880e7
commit 531b9f6626

View File

@ -1444,16 +1444,6 @@ int stm32_rtc_cancelalarm(enum alm_id_e alarmid)
rtc_wprunlock();
#if 0
/* Set Initialization mode */
ret = rtc_enterinit();
if (ret < 0)
{
goto errout_with_wprunlock;
}
#endif
/* Disable RTC alarm and interrupt */
modifyreg32(STM32_RTC_CR, (RTC_CR_ALRAE | RTC_CR_ALRAIE), 0);
@ -1485,16 +1475,6 @@ int stm32_rtc_cancelalarm(enum alm_id_e alarmid)
rtc_wprunlock();
#if 0
/* Set Initialization mode */
ret = rtc_enterinit();
if (ret < 0)
{
goto errout_with_wprunlock;
}
#endif
/* Disable RTC alarm and interrupt */
modifyreg32(STM32_RTC_CR, (RTC_CR_ALRBE | RTC_CR_ALRBIE), 0);