From 8a076d4c09986bfd6325aef26d01254eb9324383 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 4 Apr 2016 08:30:03 -0600 Subject: [PATCH] Eliminate a warning --- arch/arm/src/stm32/stm32f40xxx_rtcc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32/stm32f40xxx_rtcc.c b/arch/arm/src/stm32/stm32f40xxx_rtcc.c index c0858a02ac..c526674a27 100644 --- a/arch/arm/src/stm32/stm32f40xxx_rtcc.c +++ b/arch/arm/src/stm32/stm32f40xxx_rtcc.c @@ -769,8 +769,7 @@ static int rtchw_check_alrbwf(void) #ifdef CONFIG_RTC_ALARM static int rtchw_set_alrmar(rtc_alarmreg_t alarmreg) { - int ret= -EBUSY; - uint32_t cr; + int ret = -EBUSY; /* Need to follow RTC register wrote protection * Disable the write protection for RTC registers @@ -807,8 +806,7 @@ errout_with_wprunlock: #ifdef CONFIG_RTC_ALARM static int rtchw_set_alrmbr(rtc_alarmreg_t alarmreg) { - uint32_t cr; - int ret= -EBUSY; + int ret = -EBUSY; /* Need to follow RTC register wrote protection * Disable the write protection for RTC registers