diff --git a/arch/arm/src/stm32/stm32_rtcc.c b/arch/arm/src/stm32/stm32_rtcc.c index 5c0fbdf8ced..0c646293b11 100644 --- a/arch/arm/src/stm32/stm32_rtcc.c +++ b/arch/arm/src/stm32/stm32_rtcc.c @@ -1086,7 +1086,6 @@ int up_rtc_settime(FAR const struct timespec *tp) #ifdef CONFIG_RTC_ALARM int stm32_rtc_setalarm(FAR const struct timespec *tp, alarmcb_t callback) { - irqstate_t flags; int ret = -EBUSY; /* Is there already something waiting on the ALARM? */